anv: fix scratch buffer reloc in 3DSTATE_HS
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 2 Mar 2023 12:39:31 +0000 (14:39 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 2 Mar 2023 17:51:41 +0000 (17:51 +0000)
commitf1e4d5c910c9ecf68831b9244ad4184516234de1
treecb8cd213e16d8437981d1d907974062bffbe14a8
parente509afacf3fb277f944f6d4ebf9d88d4a27c6df6
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: 2028f1caa385 ("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>
src/intel/vulkan/genX_pipeline.c