Mesa (7.9): i915: Force lowering of all types of indirect array accesses in the FS
Ian Romanick
idr at kemper.freedesktop.org
Tue Mar 1 21:26:35 UTC 2011
Module: Mesa
Branch: 7.9
Commit: 9fe29f34f367598e77d84036a2983fc59167d631
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9fe29f34f367598e77d84036a2983fc59167d631
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Thu Feb 10 11:51:28 2011 -0800
i915: Force lowering of all types of indirect array accesses in the FS
NOTE: This is a candidate for the 7.9 and 7.10 branches.
(cherry picked from commit 4c1dc1c4d772b06578567f14419fdd4f27843825)
---
src/mesa/drivers/dri/i915/i915_context.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i915/i915_context.c b/src/mesa/drivers/dri/i915/i915_context.c
index 970cd4a..9dc6d81 100644
--- a/src/mesa/drivers/dri/i915/i915_context.c
+++ b/src/mesa/drivers/dri/i915/i915_context.c
@@ -192,8 +192,16 @@ i915CreateContext(int api,
* FINISHME: vertex shaders?
*/
ctx->ShaderCompilerOptions[MESA_SHADER_VERTEX].EmitCondCodes = GL_TRUE;
- ctx->ShaderCompilerOptions[MESA_SHADER_FRAGMENT].EmitNoIfs = GL_TRUE;
- ctx->ShaderCompilerOptions[MESA_SHADER_FRAGMENT].EmitNoNoise = GL_TRUE;
+
+ struct gl_shader_compiler_options *const fs_options =
+ & ctx->ShaderCompilerOptions[MESA_SHADER_FRAGMENT];
+ fs_options->EmitNoIfs = GL_TRUE;
+ fs_options->EmitNoNoise = GL_TRUE;
+ fs_options->EmitNoMainReturn = GL_TRUE;
+ fs_options->EmitNoIndirectInput = GL_TRUE;
+ fs_options->EmitNoIndirectOutput = GL_TRUE;
+ fs_options->EmitNoIndirectUniform = GL_TRUE;
+ fs_options->EmitNoIndirectTemp = GL_TRUE;
ctx->Const.MaxDrawBuffers = 1;
More information about the mesa-commit
mailing list