i965/gs: Move generation check for bailing earlier.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 16 May 2011 18:41:32 +0000 (11:41 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 18 May 2011 06:32:57 +0000 (23:32 -0700)
commitebeea9857339da5f0f0455c45a8350190bbad189
tree5ce42d40c830a3ec0dc395f749c24723d7503d36
parentc6175d78705aaca23fc5561a3a73be0b6a952b27
i965/gs: Move generation check for bailing earlier.

On Sandybridge, we don't need to break down primitives.  There's no need
to bother setting up brw_compile and such if it's not going to be used;
bail as early as possible.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_gs.c