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 cb0a8b96c9c3cdb03b7e3de33320a9461a381a96..28549f2574ad2f1e064718fb172ee0ec7f1a8852 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);