summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/compiler/shader_info.h2
-rw-r--r--src/mesa/main/shaderapi.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h
index 6c05f3807ee..181f85febac 100644
--- a/src/compiler/shader_info.h
+++ b/src/compiler/shader_info.h
@@ -134,6 +134,8 @@ typedef struct shader_info {
struct {
unsigned local_size[3];
+ bool local_size_variable;
+
/**
* Size of shared variables accessed by the compute shader.
*/
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index c1e67f36366..f9106140770 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -2203,6 +2203,7 @@ _mesa_copy_linked_program_data(const struct gl_shader_program *src,
for (int i = 0; i < 3; i++)
dst->info.cs.local_size[i] = src->Comp.LocalSize[i];
dst->info.cs.shared_size = src->Comp.SharedSize;
+ dst->info.cs.local_size_variable = src->Comp.LocalSizeVariable;
break;
}
default: