Mesa (master): nir/linker: fill is_shader_storage for uniforms

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 1 10:29:26 UTC 2019


Module: Mesa
Branch: master
Commit: eec1d5f8011a802a38800afcb9d356e21cc3909a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=eec1d5f8011a802a38800afcb9d356e21cc3909a

Author: Alejandro Piñeiro <apinheiro at igalia.com>
Date:   Mon Feb 12 15:50:18 2018 +0100

nir/linker: fill is_shader_storage for uniforms

Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

---

 src/compiler/glsl/gl_nir_link_uniforms.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/compiler/glsl/gl_nir_link_uniforms.c b/src/compiler/glsl/gl_nir_link_uniforms.c
index e4924df0d03..0f8911b5b81 100644
--- a/src/compiler/glsl/gl_nir_link_uniforms.c
+++ b/src/compiler/glsl/gl_nir_link_uniforms.c
@@ -369,6 +369,8 @@ nir_link_uniform(struct gl_context *ctx,
       if (uniform->hidden)
          state->num_hidden_uniforms++;
 
+      uniform->is_shader_storage = nir_variable_is_in_ssbo(state->current_var);
+
       /* @FIXME: the initialization of the following will be done as we
        * implement support for their specific features, like SSBO, atomics,
        * etc.
@@ -379,7 +381,6 @@ nir_link_uniform(struct gl_context *ctx,
       uniform->array_stride = -1;
       uniform->row_major = false;
       uniform->builtin = false;
-      uniform->is_shader_storage = false;
       uniform->atomic_buffer_index = -1;
       uniform->top_level_array_size = 0;
       uniform->top_level_array_stride = 0;




More information about the mesa-commit mailing list