mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
anv: explicitly disable BT pool allocations at device init
The default state doesn't seem well defined (or kernel driver bug
maybe?). Let's just set it to disabled on platforms where we're not
using it.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Found-by: Chuansheng Liu <chuansheng.liu@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30841>
(cherry picked from commit 1f9c40a8d1)
This commit is contained in:
parent
591cfcaf79
commit
5eb0a7d809
2 changed files with 13 additions and 1 deletions
|
|
@ -524,7 +524,7 @@
|
|||
"description": "anv: explicitly disable BT pool allocations at device init",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -312,6 +312,18 @@ init_common_queue_state(struct anv_queue *queue, struct anv_batch *batch)
|
|||
#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
|
||||
|
||||
struct mi_builder b;
|
||||
mi_builder_init(&b, device->info, batch);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue