Skip to content

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: 63e91148 ("anv: Enable VK_VALVE_mutable_descriptor_type")

Merge request reports