mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 11:20:11 +01:00
spirv: Create acceleration structure and shader record variables
spirv_to_nir now requires NIR variables to be created for everything.
Fixes: 10b3eecd36 "spirv: Don't remove variables used by resource..."
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8637>
This commit is contained in:
parent
5cecf826d3
commit
72437f6d54
1 changed files with 2 additions and 5 deletions
|
|
@ -1831,6 +1831,8 @@ vtn_create_variable(struct vtn_builder *b, struct vtn_value *val,
|
|||
case vtn_variable_mode_ubo:
|
||||
case vtn_variable_mode_ssbo:
|
||||
case vtn_variable_mode_push_constant:
|
||||
case vtn_variable_mode_accel_struct:
|
||||
case vtn_variable_mode_shader_record:
|
||||
var->var = rzalloc(b->shader, nir_variable);
|
||||
var->var->name = ralloc_strdup(var->var, val->name);
|
||||
|
||||
|
|
@ -1935,11 +1937,6 @@ vtn_create_variable(struct vtn_builder *b, struct vtn_value *val,
|
|||
break;
|
||||
}
|
||||
|
||||
case vtn_variable_mode_accel_struct:
|
||||
case vtn_variable_mode_shader_record:
|
||||
/* These don't need actual variables. */
|
||||
break;
|
||||
|
||||
case vtn_variable_mode_image:
|
||||
case vtn_variable_mode_phys_ssbo:
|
||||
case vtn_variable_mode_generic:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue