i965: Emit full-length PIPE_CONTROLs for (non-write) flushes.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 11 Dec 2013 23:22:26 +0000 (15:22 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 20 Jan 2014 23:38:23 +0000 (15:38 -0800)
commit4b9e5c985c2d25c848c2c1e0d1ac1ef1124d8480
tree78cb6b06ce2368fb8f099af80b10f2b16278e676
parent9420b577ddeefe04c9812e9b62628e2f01be06cf
i965: Emit full-length PIPE_CONTROLs for (non-write) flushes.

The PIPE_CONTROL packet actually has 5 DWords on Gen6+:
1. Header
2. Flags
3. Address
4. Immediate Data: Lower DWord
5. Immediate Data: Upper DWord

We just never emitted the last one.  While it appears to work, it's
probably safer to emit the entire thing.

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