mesa/compiler: add local_size_variable to shader_info

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>
This commit is contained in:
Timothy Arceri
2016-10-31 22:06:37 +11:00
parent 9ea513e226
commit 8a69ae5345
2 changed files with 3 additions and 0 deletions

View 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.
*/

View 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: