i965: Port 3DSTATE_VF to genxml and simplify the implementation.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 4 May 2017 08:17:29 +0000 (01:17 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 6 May 2017 22:43:43 +0000 (15:43 -0700)
commit6e2c39f562bce4f3aa6ad93afe9c1b08415f252e
tree3ddd5f3d82cc999ef9871e670a0342fffd3ad8ad
parent8c5a938171d0566b087fdfb5c422464aa005e8ed
i965: Port 3DSTATE_VF to genxml and simplify the implementation.

The whole "it might be used for non-indexed draws" thing is no longer
true - it turns out this was a mistake, and removed in OpenGL 4.5.
(See Marek's commit 96cbc1ca29e0b1f4f4d6c868b8449999aecb9080.)  So
we can simplify this and just program 0 for non-indexed draws.

We can also use #if blocks to remove the atom on Ivybridge/Baytrail,
now that they have a separate atom list from Haswell.  No more runtime
checks.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_primitive_restart.c
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/genX_state_upload.c