1 Sep 2011 02:58
Re: [PATCH] mesa: Replace the EmitNoIfs compiler flag with a MaxIfLevel flag.
Ian Romanick <idr <at> freedesktop.org>
2011-09-01 00:58:59 GMT
2011-09-01 00:58:59 GMT
On 08/31/2011 03:30 PM, Bryan Cain wrote: > This is a better, more fine-grained way of lowering if statements. Fixes the > game And Yet It Moves on nv50. Other than the one comment below, Reviewed-by: Ian Romanick <ian.d.romanick <at> intel.com> > --- > src/mesa/drivers/dri/i915/i915_context.c | 2 +- > src/mesa/main/mtypes.h | 6 +----- > src/mesa/program/ir_to_mesa.cpp | 8 ++++---- > src/mesa/state_tracker/st_extensions.c | 2 +- > src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 6 +++--- > 5 files changed, 10 insertions(+), 14 deletions(-) > > diff --git a/src/mesa/drivers/dri/i915/i915_context.c b/src/mesa/drivers/dri/i915/i915_context.c > index 11bee14..7a40ba1 100644 > --- a/src/mesa/drivers/dri/i915/i915_context.c > +++ b/src/mesa/drivers/dri/i915/i915_context.c > <at> <at> -189,7 +189,7 <at> <at> i915CreateContext(int api, > > struct gl_shader_compiler_options *const fs_options = > & ctx->ShaderCompilerOptions[MESA_SHADER_FRAGMENT]; > - fs_options->EmitNoIfs = GL_TRUE; > + fs_options->MaxIfLevel = 0; > fs_options->EmitNoNoise = GL_TRUE; > fs_options->EmitNoPow = GL_TRUE; > fs_options->EmitNoMainReturn = GL_TRUE;(Continue reading)
RSS Feed