aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-04-28 14:40:51 -0700
committerJason Ekstrand <[email protected]>2016-05-14 13:34:21 -0700
commit7be100ac9af52b1ab5e2c34b45aba0d66304d55a (patch)
tree30587286f08c2187cf130ec8108fac7e37494910 /src
parent1ec466d0ff59ab17edef95c84ed733c1fea5655e (diff)
i965/gen7_wm: Move where we set the fast clear op
This better matches gen8 state setup Acked-by: Topi Pohjolainen <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/gen7_wm_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_wm_state.c b/src/mesa/drivers/dri/i965/gen7_wm_state.c
index 17dea99a03d..8d2e2c32bb4 100644
--- a/src/mesa/drivers/dri/i965/gen7_wm_state.c
+++ b/src/mesa/drivers/dri/i965/gen7_wm_state.c
@@ -214,6 +214,8 @@ gen7_upload_ps_state(struct brw_context *brw,
if (prog_data->num_varying_inputs != 0)
dw4 |= GEN7_PS_ATTRIBUTE_ENABLE;
+ dw4 |= fast_clear_op;
+
if (prog_data->prog_offset_16 || prog_data->no_8) {
dw4 |= GEN7_PS_16_DISPATCH_ENABLE;
@@ -243,8 +245,6 @@ gen7_upload_ps_state(struct brw_context *brw,
ksp0 = stage_state->prog_offset;
}
- dw4 |= fast_clear_op;
-
BEGIN_BATCH(8);
OUT_BATCH(_3DSTATE_PS << 16 | (8 - 2));
OUT_BATCH(ksp0);