diff options
author | Paul Berry <[email protected]> | 2014-01-06 20:06:05 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2014-02-05 09:01:10 -0800 |
commit | d861c2963a0b939709981f39e8268822489db86f (patch) | |
tree | ad951a9bf3f72fbff8ce4ede6fb470c84aa317a9 /src/glsl/standalone_scaffolding.cpp | |
parent | c61ec8d8e34e9bf30b3c4c84afa08f0a5b66b932 (diff) |
glsl/cs: Populate default values for ctx->Const.Program[MESA_SHADER_COMPUTE].
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/standalone_scaffolding.cpp')
-rw-r--r-- | src/glsl/standalone_scaffolding.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/standalone_scaffolding.cpp b/src/glsl/standalone_scaffolding.cpp index 3f88aa14329..42c45720b73 100644 --- a/src/glsl/standalone_scaffolding.cpp +++ b/src/glsl/standalone_scaffolding.cpp @@ -141,6 +141,10 @@ void initialize_context_to_defaults(struct gl_context *ctx, gl_api api) ctx->Const.Program[MESA_SHADER_FRAGMENT].MaxInputComponents = 32; ctx->Const.MaxDrawBuffers = 1; + 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 */ + ctx->Const.Program[MESA_SHADER_COMPUTE].MaxOutputComponents = 0; /* not used */ /* Set up default shader compiler options. */ struct gl_shader_compiler_options options; |