diff options
author | Paul Berry <[email protected]> | 2013-06-10 10:29:20 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-08-23 11:02:34 -0700 |
commit | 52bac6e4ffb898d2222a59c9ee3c8d0a46426e20 (patch) | |
tree | 985d3d0b75f9d90ee007defbd71f1759ed6c5a97 /src | |
parent | 61a5bd8336aaf44b455407e0eb10caa1d031b358 (diff) |
i965: Initialize all elements of ctx->ShaderCompilerOptions.
Otherwise any GS that requires lowering (e.g. one that uses
gl_ClipDistance as an input or output) will fail to work.
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 44a35d1a840..6308446cca9 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -248,7 +248,7 @@ brw_initialize_context_constants(struct brw_context *brw) driQueryOptionb(&brw->optionCache, "disable_glsl_line_continuations"); /* We want the GLSL compiler to emit code that uses condition codes */ - for (int i = 0; i <= MESA_SHADER_FRAGMENT; i++) { + for (int i = 0; i < MESA_SHADER_TYPES; i++) { ctx->ShaderCompilerOptions[i].MaxIfDepth = brw->gen < 6 ? 16 : UINT_MAX; ctx->ShaderCompilerOptions[i].EmitCondCodes = true; ctx->ShaderCompilerOptions[i].EmitNoNoise = true; |