i965: Convert VUE map generation checks to if rather than switch.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 25 Feb 2014 20:21:41 +0000 (12:21 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 27 Feb 2014 08:05:55 +0000 (00:05 -0800)
commit80c1b9349c861cc023c4f25c329a3c0ed4695b9e
tree8f45f89c1313faf3c49a5d78be2b76a7eb5ba3d4
parent9b1a6745f6b827170ac29a00510dbb740c81a116
i965: Convert VUE map generation checks to if rather than switch.

There are currently only two VUE map layouts: one for Gen4-5, and one
for everything else.  We keep having to add new "case N+1" labels for
every new hardware generation, and so far it's always been the same.

This patch makes it so we only have to do work in the case where
something actually changes.

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