Mesa (master): glsl/standalone: add GLES3.1 and GLES3.2 compatibility
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Apr 10 14:23:17 UTC 2019
Module: Mesa
Branch: master
Commit: 0c4706563a1596b68315ba91456e256881fa071b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c4706563a1596b68315ba91456e256881fa071b
Author: Karol Herbst <kherbst at redhat.com>
Date: Thu Jan 17 21:05:00 2019 +0100
glsl/standalone: add GLES3.1 and GLES3.2 compatibility
also set some constants for SSBOs.
With that it can compile the shader from:
dEQP-GLES31.functional.ssbo.layout.random.all_per_block_buffers.18
Signed-off-by: Karol Herbst <kherbst at redhat.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
---
src/compiler/glsl/standalone.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/compiler/glsl/standalone.cpp b/src/compiler/glsl/standalone.cpp
index 06869a0b3dc..942b9ee4986 100644
--- a/src/compiler/glsl/standalone.cpp
+++ b/src/compiler/glsl/standalone.cpp
@@ -138,6 +138,8 @@ initialize_context(struct gl_context *ctx, gl_api api)
*/
ctx->Const.GLSLVersion = options->glsl_version;
ctx->Extensions.ARB_ES3_compatibility = true;
+ ctx->Extensions.ARB_ES3_1_compatibility = true;
+ ctx->Extensions.ARB_ES3_2_compatibility = true;
ctx->Const.MaxComputeWorkGroupCount[0] = 65535;
ctx->Const.MaxComputeWorkGroupCount[1] = 65535;
ctx->Const.MaxComputeWorkGroupCount[2] = 65535;
@@ -265,6 +267,9 @@ initialize_context(struct gl_context *ctx, gl_api api)
ctx->Const.MaxUniformBufferBindings = 84;
ctx->Const.MaxVertexStreams = 4;
ctx->Const.MaxTransformFeedbackBuffers = 4;
+ ctx->Const.MaxShaderStorageBufferBindings = 4;
+ ctx->Const.MaxShaderStorageBlockSize = 4096;
+ ctx->Const.MaxAtomicBufferBindings = 4;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs = 16;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxTextureImageUnits = 16;
More information about the mesa-commit
mailing list