i965: Port gen4+ emit vertices code to genxml.
authorRafael Antognolli <rafael.antognolli@intel.com>
Thu, 6 Apr 2017 23:43:49 +0000 (16:43 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 4 May 2017 03:39:48 +0000 (20:39 -0700)
commit158dcd86590ad5c513bc4db283b32ea2d8559493
tree39719a9ff9e458006ef16dcee0e34c71fb694320
parent46d8f9454f8bdd469f389b78ce3cb8ef35b7fd68
i965: Port gen4+ emit vertices code to genxml.

Some code that was placed in brw_draw_upload.c and exported to be used
by gen8+ was also moved to genX_state_upload, and the respective symbols
are not exported anymore.

v2:
   - Remove code from brw_draw_upload too
   - Emit vertices for gen4-5 too.
   - Use helper to setup brw_address (Kristian)
   - Use macros for MOCS values.
   - Do not use #ifndef NDEBUG on code that is actually used (Ken)
v3:
   - Style and code clenup (Ken)
   - Keep some of the common code inside brw_draw_upload.c (Ken)

Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_draw_upload.c
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/gen8_draw_upload.c
src/mesa/drivers/dri/i965/genX_state_upload.c