diff options
author | Daniel Scharrer <[email protected]> | 2016-04-19 16:57:06 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-05-18 18:21:21 +0200 |
commit | 1d628ea09df4911e897292186dc8242903c7a502 (patch) | |
tree | 93b88c55f2dd5960b77b4a0b1f8aed239d1f7359 /src | |
parent | 5827a1dc4b3c2f51d45f4b1d6ccd080515ed2bcc (diff) |
mesa: Don't advertise GLES 3.1 without compute support
The MaxComputeWorkGroupInvocations constant is used in
compute_version_es2() instead of extensions->ARB_compute_shader
as ES has lower requirements than desktop GL.
Both i965 and gallium set this constant before enabling compute support.
Signed-off-by: Daniel Scharrer <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 6af02d1c3dc..f6907991c75 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -708,7 +708,8 @@ _mesa_init_constants(struct gl_constants *consts, gl_api api) consts->MaxComputeWorkGroupSize[0] = 1024; consts->MaxComputeWorkGroupSize[1] = 1024; consts->MaxComputeWorkGroupSize[2] = 64; - consts->MaxComputeWorkGroupInvocations = 1024; + /* Enables compute support for GLES 3.1 if >= 128 */ + consts->MaxComputeWorkGroupInvocations = 0; /** GL_ARB_gpu_shader5 */ consts->MinFragmentInterpolationOffset = MIN_FRAGMENT_INTERPOLATION_OFFSET; |