[Mesa-dev] [PATCH 2/2] glsl: Remove duplicated defaults in the standalone compiler

Daniel Scharrer daniel at constexpr.org
Tue Apr 19 14:57:07 UTC 2016


These are already set in initialize_context_to_defaults().

Signed-off-by: Daniel Scharrer <daniel at constexpr.org>
---
 src/compiler/glsl/main.cpp | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/src/compiler/glsl/main.cpp b/src/compiler/glsl/main.cpp
index d253575..c410bdd 100644
--- a/src/compiler/glsl/main.cpp
+++ b/src/compiler/glsl/main.cpp
@@ -51,19 +51,8 @@ initialize_context(struct gl_context *ctx, gl_api api)
     */
    ctx->Const.GLSLVersion = glsl_version;
    ctx->Extensions.ARB_ES3_compatibility = true;
-   ctx->Const.MaxComputeWorkGroupCount[0] = 65535;
-   ctx->Const.MaxComputeWorkGroupCount[1] = 65535;
-   ctx->Const.MaxComputeWorkGroupCount[2] = 65535;
-   ctx->Const.MaxComputeWorkGroupSize[0] = 1024;
-   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].MaxCombinedUniformComponents = 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;
-- 
2.8.1



More information about the mesa-dev mailing list