mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-11 11:15:11 +08:00
anv: fix scratch buffer reloc in 3DSTATE_HS
We need to have the scratch buffer added to the pipeline BO tracking
list, so it's added to the batch buffer and finally to the execbuffer
list. Otherwise we pagefault (or read the default scratch page on
i915).
Fixes
dEQP-VK.subgroups.ballot_broadcast.graphics.subgroupbroadcast_u16vec4
on CI (and probably other tests).
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 2028f1caa3
("anv: emit 3DSTATE_HS in cmd_buffer_flush_gfx_state")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21653>
This commit is contained in:
parent
e509afacf3
commit
f1e4d5c910
@ -1293,7 +1293,7 @@ emit_3dstate_hs_ds(struct anv_graphics_pipeline *pipeline,
|
||||
hs.DispatchMode = tcs_prog_data->base.dispatch_mode;
|
||||
hs.IncludePrimitiveID = tcs_prog_data->include_primitive_id;
|
||||
|
||||
GENX(3DSTATE_HS_pack)(NULL, pipeline->gfx8.hs, &hs);
|
||||
GENX(3DSTATE_HS_pack)(&pipeline->base.batch, pipeline->gfx8.hs, &hs);
|
||||
|
||||
anv_batch_emit(&pipeline->base.batch, GENX(3DSTATE_DS), ds) {
|
||||
ds.Enable = true;
|
||||
|
Loading…
Reference in New Issue
Block a user