mesa/compiler: add local_size_variable to shader_info
authorTimothy Arceri <timothy.arceri@collabora.com>
Mon, 31 Oct 2016 11:06:37 +0000 (22:06 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 29 Dec 2016 23:57:16 +0000 (10:57 +1100)
This will be used in api_validate.c in a following patch when we
switch to using gl_program pointers for the pipelines CurrentProgram
array.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/shader_info.h
src/mesa/main/shaderapi.c

index 6c05f3807ee90bef79b20d87850a8eae6e920622..181f85febac26adcd4b2e6a50d32452f5cac5f73 100644 (file)
@@ -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.
           */
index c1e67f363664af3e503aa802567743007083b997..f9106140770dd7d0717bdfa72bc1c130c8917919 100644 (file)
@@ -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: