mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
nir/nir_lower_uniforms_to_ubo: Set the explicit stride of the UBO 0 uniform.
Normal UBOs have explicit strides on them, make our lowered one behave the same. Reviewed-by: Adam Jackson <ajax@redhat.com> Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12175>
This commit is contained in:
parent
01759d3fb2
commit
33182c555f
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ nir_lower_uniforms_to_ubo(nir_shader *shader, bool dword_packed, bool load_vec4)
|
|||
|
||||
if (shader->num_uniforms > 0) {
|
||||
const struct glsl_type *type = glsl_array_type(glsl_vec4_type(),
|
||||
shader->num_uniforms, 0);
|
||||
shader->num_uniforms, 16);
|
||||
nir_variable *ubo = nir_variable_create(shader, nir_var_mem_ubo, type,
|
||||
"uniform_0");
|
||||
ubo->data.binding = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue