i965: Use full-length PIPE_CONTROL packets for workaround writes.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 11 Dec 2013 23:25:58 +0000 (15:25 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 20 Jan 2014 23:38:23 +0000 (15:38 -0800)
commit35458a99c0940ec29503fa02134ec3ed9de363f9
tree43345fc6ba186fd312717b2a8107d3665e3378ac
parent4b9e5c985c2d25c848c2c1e0d1ac1ef1124d8480
i965: Use full-length PIPE_CONTROL packets for workaround writes.

I believe that PIPE_CONTROL uses the length field to decide whether to
do 32-bit or 64-bit writes.  A length of 4 would do a 32-bit write,
while a length of 5 would do a 64-bit write.  (I haven't verified this,
though.)

For workaround writes, we don't care what value gets written, or how
much data.  We're only writing something because hardware bugs mandate
that do so.  So using a 64-bit write should be fine.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/intel_batchbuffer.c