anv: fix anv_nir_lower_ubo_loads pass
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 21 Apr 2023 09:29:00 +0000 (12:29 +0300)
committerMarge Bot <emma+marge@anholt.net>
Thu, 27 Apr 2023 09:08:03 +0000 (09:08 +0000)
commit9fb9ae5ac69293ab60d5d1f7470d8f152ccde7f6
treecf1779890dca168afbb55c7b30c561ca825236ee
parentd6e9479d4b3be15c37acebfc0930d9e06de78d9b
anv: fix anv_nir_lower_ubo_loads pass

In order to use load_global_const_block_intel we need to ensure the
64bit address in src[0] is uniform. This is not the case in the
vkd3d-proton test_bindless_cbv tests for example.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22624>
src/intel/vulkan/anv_nir_lower_ubo_loads.c
src/intel/vulkan/anv_pipeline.c