i965: Use GEN_GEN and GEN_IS_HASWELL in genX_state_upload.c code.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 24 Aug 2017 07:25:21 +0000 (00:25 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 25 Aug 2017 18:40:43 +0000 (11:40 -0700)
commite8378adc01a8cbb08e057fb2b50a9e2f8d95b36f
treefc41ad9f59660d788f5e7f2c2cc442630b8aa5ee
parent1eb58960bfd30d575cca4fa3c600512751aab467
i965: Use GEN_GEN and GEN_IS_HASWELL in genX_state_upload.c code.

We were using brw->gen, brw->is_haswell, and devinfo->gen in a few
places, when we could just use GEN_GEN and GEN_IS_HASWELL, which are
evaluated at compile time.

Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
src/mesa/drivers/dri/i965/genX_state_upload.c