anv: fix robust buffer access
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sat, 29 Aug 2020 16:23:19 +0000 (19:23 +0300)
committerMarge Bot <eric+marge@anholt.net>
Mon, 31 Aug 2020 19:24:42 +0000 (19:24 +0000)
commit9efdbb2af475ac119f5e5bb1eb128d842ee52998
tree228aa0b3e15e33157b13444d01a2cb77fbba20ea
parent73d2c6cdce8c12e87e387bc958c720f9d8f6b9b4
anv: fix robust buffer access

In 957bbc6ad907ec we merged all the per stages allocations of push
constants into a single one. Unfortunately one field remained per
stage.

This fixes the issue by including all the per stage values of the
masked registers for robust buffer access into the push constant data.

v2: Drop unneeded loop (Jason)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 957bbc6ad907ec ("anv: simplify push constant emissions")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6505>
src/intel/vulkan/anv_nir_compute_push_layout.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c