Re: [Mesa-dev] [PATCH] i915: Don't flatten IF statements in the vertex shader.

2012-09-19 Thread Eric Anholt
Kenneth Graunke writes: > MaxIfDepth of 0 means "flatten all the time", not "never flatten". > Vertex shading is done using swrast, which can handle control flow > just fine. Giving it less instructions will probably help performance. Seems like the default in Mesa core on context init ought to

[Mesa-dev] [PATCH] i915: Don't flatten IF statements in the vertex shader.

2012-09-14 Thread Kenneth Graunke
MaxIfDepth of 0 means "flatten all the time", not "never flatten". Vertex shading is done using swrast, which can handle control flow just fine. Giving it less instructions will probably help performance. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i915/i915_context.c | 1 + 1 file