i965/gen6/blorp: Set need_workaround_flush immediately after primitive
authorChad Versace <chad.versace@linux.intel.com>
Tue, 24 Dec 2013 01:46:51 +0000 (17:46 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Thu, 9 Jan 2014 23:02:36 +0000 (15:02 -0800)
commit5e0cd58de4261e9dca7a15037192e7e9426a0207
tree2aa926cb619f54a7db9a3b76b4d021a7aa672b15
parent3587fbc586d7c0176d1c0ca33ab807bee5269a76
i965/gen6/blorp: Set need_workaround_flush immediately after primitive

This patch makes the workaround code in gen6 blorp follow the pattern
established in the regular draw path. It shouldn't result in any
behavioral change.

On gen6, there are two places where we emit 3D_CMD_PRIM: brw_emit_prim()
and gen6_blorp_emit_primitive().  brw_emit_prim() sets
need_workaround_flush immediately after emitting the primitive, but
blorp does not. Blorp sets need_workaround_flush at the bottom of
brw_blorp_exec().

This patch moves the need_workaround_flush from brw_blorp_exec() to
gen6_blorp_emit_primitive().  There is no need to set
need_workaround_flush in gen7_blorp_emit_primitive() because the
workaround applies only to gen6.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_blorp.cpp
src/mesa/drivers/dri/i965/gen6_blorp.cpp