genxml: Make a SCISSOR_RECT structure on Gen4-5.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 11 May 2017 06:37:23 +0000 (23:37 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 30 May 2017 04:46:37 +0000 (21:46 -0700)
commit9afe5846d2c9df4e1ac6c1a5c296e14ac68ae968
tree4244fecebf3c38557888c04e4ae632810c3d3171
parent44309dcea361f7000d7c28030c328cbcb4995948
genxml: Make a SCISSOR_RECT structure on Gen4-5.

Gen6+ support multiple scissor rectangles, and define a SCISSOR_RECT
structure containing their dimensions.  On Gen4-5, those same fields
exist in SF_VIEWPORT.

This patch extracts the SF_VIEWPORT fields into a SCISSOR_RECT
structure.  Although not a named concept on Gen4-5, it works just
as well, and gives us a consistent SCISSOR_RECT structure across
all generations, making it easier to reuse code.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/genxml/gen4.xml
src/intel/genxml/gen45.xml
src/intel/genxml/gen5.xml