mesa: store shared size in gl_compute_program
The size of shared variables needs to be stored in gl_compute_program in order to set up pipe_compute_state::req_local_mem. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
be27f772e8
commit
a9eb1327be
|
@ -2044,6 +2044,11 @@ struct gl_compute_program
|
|||
* Size specified using local_size_{x,y,z}.
|
||||
*/
|
||||
unsigned LocalSize[3];
|
||||
|
||||
/**
|
||||
* Size of shared variables accessed by the compute shader.
|
||||
*/
|
||||
unsigned SharedSize;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -2124,6 +2124,7 @@ _mesa_copy_linked_program_data(gl_shader_stage type,
|
|||
int i;
|
||||
for (i = 0; i < 3; i++)
|
||||
dst_cp->LocalSize[i] = src->Comp.LocalSize[i];
|
||||
dst_cp->SharedSize = src->Comp.SharedSize;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue