[Mesa-dev] [PATCH 24/27] glsl: Assign atomic counter resources on shader compile fall back path

Jordan Justen jordan.l.justen at intel.com
Sat Aug 19 07:44:40 UTC 2017


Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Cc: Timothy Arceri <tarceri at itsqueeze.com>
---
 src/compiler/glsl/linker.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp
index 306051f1f0..671c38e8e1 100644
--- a/src/compiler/glsl/linker.cpp
+++ b/src/compiler/glsl/linker.cpp
@@ -4578,9 +4578,9 @@ link_and_validate_uniforms(struct gl_context *ctx,
 {
    update_array_sizes(prog);
    link_assign_uniform_locations(prog, ctx);
+   link_assign_atomic_counter_resources(ctx, prog);
 
    if (!prog->data->cache_fallback) {
-      link_assign_atomic_counter_resources(ctx, prog);
       link_calculate_subroutine_compat(prog);
       check_resources(ctx, prog);
       check_subroutine_resources(prog);
-- 
2.14.0



More information about the mesa-dev mailing list