mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-04 19:20:38 +01:00
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:63e91148b7("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> (cherry picked from commitfe413962b4)
This commit is contained in:
parent
f11afdbf9c
commit
1e1b7661e2
2 changed files with 2 additions and 1 deletions
|
|
@ -562,7 +562,7 @@
|
|||
"description": "anv: skip acceleration structure in binding table emission",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "63e91148b7fe777b6ad7bfdb6b02d167c151dd55"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2689,6 +2689,7 @@ emit_binding_table(struct anv_cmd_buffer *cmd_buffer,
|
|||
const struct anv_descriptor *desc = &set->descriptors[binding->index];
|
||||
|
||||
switch (desc->type) {
|
||||
case VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR:
|
||||
case VK_DESCRIPTOR_TYPE_SAMPLER:
|
||||
/* Nothing for us to do here */
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue