OSDN Git Service

i965: Enable IF statements in the VS.
authorEric Anholt <eric@anholt.net>
Wed, 1 Dec 2010 23:36:26 +0000 (15:36 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 2 Dec 2010 00:14:34 +0000 (16:14 -0800)
While the actual IF instructions were fixed by Zhenyu, we were still
flattening them to conditional moves.

src/mesa/drivers/dri/i965/brw_context.c

index cb0a8b9..28549f2 100644 (file)
@@ -122,9 +122,6 @@ GLboolean brwCreateContext( int api,
         (i == MESA_SHADER_FRAGMENT);
       ctx->ShaderCompilerOptions[i].EmitNoIndirectTemp =
         (i == MESA_SHADER_FRAGMENT);
-
-      if (intel->gen == 6)
-        ctx->ShaderCompilerOptions[i].EmitNoIfs = (i == MESA_SHADER_VERTEX);
    }
 
    ctx->Const.VertexProgram.MaxNativeInstructions = (16 * 1024);