mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 23:30:10 +01:00
zink: use a std430 interface for bo types
no functional changes but is technically more correct Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17239>
This commit is contained in:
parent
900e78548c
commit
6759320c65
1 changed files with 1 additions and 1 deletions
|
|
@ -2185,7 +2185,7 @@ unbreak_bos(nir_shader *shader, struct zink_shader *zs, bool needs_size)
|
|||
if (shader->num_uniforms && zs->ubos_used & BITFIELD_BIT(0)) {
|
||||
fields[0].type = glsl_array_type(glsl_uint_type(), max_uniform_size * 4, 4);
|
||||
nir_variable *var = nir_variable_create(shader, nir_var_mem_ubo,
|
||||
glsl_array_type(glsl_struct_type(fields, 1, "struct", false), 1, 0),
|
||||
glsl_array_type(glsl_interface_type(fields, 1, GLSL_INTERFACE_PACKING_STD430, false, "struct"), 1, 0),
|
||||
"uniform_0");
|
||||
var->interface_type = var->type;
|
||||
var->data.mode = nir_var_mem_ubo;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue