anv: skip acceleration structure in binding table emission
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 13 Apr 2022 08:42:45 +0000 (11:42 +0300)
committerMarge Bot <emma+marge@anholt.net>
Mon, 25 Apr 2022 13:19:28 +0000 (13:19 +0000)
commitfe413962b4dd89ec5be539b13e7cbf7f871dd04a
treecbc1c2ea6b00d3502581ea6827f6b03fc99287ab
parentce02eeecf4930e38b4042c02ebf61bac2be19dd0
anv: skip acceleration structure in binding table emission

With mutable descriptor types, we can end up in a situation where a
binding can be, for instance, both a UBO and an acceleration
structure.

While we can promote the UBO to a binding table entry and the shader
can use it, this isn't true of acceleration structures that have no
surface state. In that case just skip the entry. The shader is already
compiled to use the descriptor entry.

In the non mutable case, the entry will not be created by
anv_nir_apply_pipeline_layout.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 63e91148b7fe ("anv: Enable VK_VALVE_mutable_descriptor_type")
Reviewed-by: Rohan Garg <rohan.garg@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15969>
src/intel/vulkan/genX_cmd_buffer.c