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

Eric Anholt eric at anholt.net
Wed Sep 19 00:59:29 PDT 2012


Kenneth Graunke <kenneth at whitecape.org> 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 be
UINT_MAX, so that swrast gets it too.  I'm fine with this change as
well.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120919/0e08073d/attachment.pgp>


More information about the mesa-dev mailing list