compiler: add additional cs metadata fields to shader info
And copy values from GLSL. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -56,6 +56,7 @@ copy_shader_info(const struct gl_shader_program *shader_prog,
|
|||||||
info->cs.local_size[0] = cp->LocalSize[0];
|
info->cs.local_size[0] = cp->LocalSize[0];
|
||||||
info->cs.local_size[1] = cp->LocalSize[1];
|
info->cs.local_size[1] = cp->LocalSize[1];
|
||||||
info->cs.local_size[2] = cp->LocalSize[2];
|
info->cs.local_size[2] = cp->LocalSize[2];
|
||||||
|
info->cs.shared_size = cp->SharedSize;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -118,6 +118,11 @@ typedef struct shader_info {
|
|||||||
|
|
||||||
struct {
|
struct {
|
||||||
unsigned local_size[3];
|
unsigned local_size[3];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Size of shared variables accessed by the compute shader.
|
||||||
|
*/
|
||||||
|
unsigned shared_size;
|
||||||
} cs;
|
} cs;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
|
Reference in New Issue
Block a user