i965/gen7: Allow URB_WRITE channel masks to be used.
authorPaul Berry <stereotype441@gmail.com>
Sun, 11 Aug 2013 04:57:59 +0000 (21:57 -0700)
committerPaul Berry <stereotype441@gmail.com>
Wed, 11 Sep 2013 18:17:24 +0000 (11:17 -0700)
commitbf5419e389a4a8339699e25ddb6cbe902cc22357
treedee4a5eef28547ce991b041a44f686cca1f8fdab
parent247f90c77e8f3894e963d796628246ba0bde27b5
i965/gen7: Allow URB_WRITE channel masks to be used.

Previously, brw_urb_WRITE() would unconditionally override the channel
masks in the URB_WRITE message to 0xff (indicating that all channels
should be written to the URB).

In order to support geometry shader EndPrimitive functionality, we'll
need the ability to set the channel masks programatically, so that we
can output just 32 of the control data bits at a time.  So this patch
adds a flag that will prevent brw_urb_WRITE() from overriding them.

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