mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
nir/spirv: Set the interface type on uniform blocks
This commit is contained in:
parent
7e1792b1b7
commit
333b8ddd6b
1 changed files with 1 additions and 0 deletions
|
|
@ -537,6 +537,7 @@ vtn_handle_variables(struct vtn_builder *b, SpvOp opcode,
|
|||
case SpvStorageClassUniformConstant:
|
||||
var->data.mode = nir_var_uniform;
|
||||
var->data.read_only = true;
|
||||
var->interface_type = type;
|
||||
break;
|
||||
case SpvStorageClassInput:
|
||||
var->data.mode = nir_var_shader_in;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue