mesa: do not use a constant for MAX_COMPUTE_SHARED_SIZE
This will allow to query the underlying drivers for the maximum total storage size of all variables declared as <shared> with PIPE_COMPUTE_CAP_MAX_LOCAL_SIZE. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
@@ -58,6 +58,7 @@ initialize_context(struct gl_context *ctx, gl_api api)
|
||||
ctx->Const.MaxComputeWorkGroupSize[1] = 1024;
|
||||
ctx->Const.MaxComputeWorkGroupSize[2] = 64;
|
||||
ctx->Const.MaxComputeWorkGroupInvocations = 1024;
|
||||
ctx->Const.MaxComputeSharedMemorySize = 32768;
|
||||
ctx->Const.Program[MESA_SHADER_COMPUTE].MaxTextureImageUnits = 16;
|
||||
ctx->Const.Program[MESA_SHADER_COMPUTE].MaxUniformComponents = 1024;
|
||||
ctx->Const.Program[MESA_SHADER_COMPUTE].MaxInputComponents = 0; /* not used */
|
||||
|
Reference in New Issue
Block a user