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:
@@ -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.
|
||||
*/
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user