summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/main.cpp
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2016-01-20 03:06:53 -0500
committerSamuel Pitoiset <[email protected]>2016-02-13 15:51:17 +0100
commitf2547883cfcc7c7629e09cb38c162ad7f5d77611 (patch)
tree476db9272e537ab408be847f6eb2b23cc40dba05 /src/compiler/glsl/main.cpp
parentf709a0845792540544982740fa47be672825ee8a (diff)
mesa: make compute maximums reflect driver-provided values
Looks like the various max's were never plumbed through. Signed-off-by: Ilia Mirkin <[email protected]> Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/compiler/glsl/main.cpp')
-rw-r--r--src/compiler/glsl/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/glsl/main.cpp b/src/compiler/glsl/main.cpp
index df93a013ede..ff705dc74d6 100644
--- a/src/compiler/glsl/main.cpp
+++ b/src/compiler/glsl/main.cpp
@@ -62,6 +62,10 @@ initialize_context(struct gl_context *ctx, gl_api api)
ctx->Const.Program[MESA_SHADER_COMPUTE].MaxUniformComponents = 1024;
ctx->Const.Program[MESA_SHADER_COMPUTE].MaxInputComponents = 0; /* not used */
ctx->Const.Program[MESA_SHADER_COMPUTE].MaxOutputComponents = 0; /* not used */
+ ctx->Const.Program[MESA_SHADER_COMPUTE].MaxAtomicBuffers = 8;
+ ctx->Const.Program[MESA_SHADER_COMPUTE].MaxAtomicCounters = 8;
+ ctx->Const.Program[MESA_SHADER_COMPUTE].MaxImageUniforms = 8;
+ ctx->Const.Program[MESA_SHADER_COMPUTE].MaxUniformBlocks = 12;
switch (ctx->Const.GLSLVersion) {
case 100: