i965/gen7: Add the ability to send URB_WRITE_OWORD messages.
authorPaul Berry <stereotype441@gmail.com>
Mon, 12 Aug 2013 03:29:34 +0000 (20:29 -0700)
committerPaul Berry <stereotype441@gmail.com>
Wed, 11 Sep 2013 18:17:31 +0000 (11:17 -0700)
commita74af8148ded7417a46be5a9e300f2c6dfed4bed
treee6b47bb6ed51f8c57aae4362573a318ddfd4e285
parentbf5419e389a4a8339699e25ddb6cbe902cc22357
i965/gen7: Add the ability to send URB_WRITE_OWORD messages.

Previously, brw_urb_WRITE() would always generate a URB_WRITE_HWORD
message, we always wanted to write data to the URB in pairs of varying
slots or larger (an HWORD is 32 bytes, which is 2 varying slots).

In order to support geometry shader EndPrimitive functionality, we'll
need the ability to write to just a single OWORD (16 byte) slot, since
we'll only be outputting 32 of the control data bits at a time.  So
this patch adds a flag that will cause brw_urb_WRITE to generate a
URB_WRITE_OWORD message.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_eu.h
src/mesa/drivers/dri/i965/brw_eu_emit.c