Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

anv: explicitly disable BT pool allocations at device init #133

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/intel/vulkan/genX_init_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,18 @@ init_common_queue_state(struct anv_queue *queue, struct anv_batch *batch)
sba.L1CacheControl = L1CC_WB;
#endif
}

/* Disable the POOL_ALLOC mechanism in HW. We found that this state can get
* corrupted (likely due to leaking from another context), the default
* value should be disabled. It doesn't cost anything to set it once at
* device initialization.
*/
#if GFX_VER >= 11 && GFX_VERx10 < 125
anv_batch_emit(batch, GENX(3DSTATE_BINDING_TABLE_POOL_ALLOC), btpa) {
btpa.MOCS = mocs;
btpa.BindingTablePoolEnable = false;
}
#endif
#endif

#if GFX_VERx10 >= 125
Expand Down