diff options
author | Marek Olšák <[email protected]> | 2014-01-13 13:15:19 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-01-23 01:47:14 +0100 |
commit | 69c29cb147373bfe835789df6fac54821ef62d55 (patch) | |
tree | 06a022cfa3363effc1eb1bb2ffe513b2d894a396 | |
parent | 5dfb10b2f5e1583eeaef9d7258f1d6a445444e9d (diff) |
radeonsi: handle R600_CONTEXT_PS_PARTIAL_FLUSH in si_emit_cache_flush
For consistency only, This is unused by radeonsi currently.
Reviewed-by: Michel Dänzer <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_draw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index f36a1b87398..4d347ed0774 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.c +++ b/src/gallium/drivers/radeonsi/si_state_draw.c @@ -680,7 +680,8 @@ void si_emit_cache_flush(struct r600_common_context *sctx, struct r600_atom *ato radeon_emit(cs, EVENT_TYPE(V_028A90_FLUSH_AND_INV_DB_META) | EVENT_INDEX(0)); } - if (sctx->flags & R600_CONTEXT_WAIT_3D_IDLE) { + if (sctx->flags & (R600_CONTEXT_WAIT_3D_IDLE | + R600_CONTEXT_PS_PARTIAL_FLUSH)) { radeon_emit(cs, PKT3(PKT3_EVENT_WRITE, 0, 0)); radeon_emit(cs, EVENT_TYPE(V_028A90_PS_PARTIAL_FLUSH) | EVENT_INDEX(4)); } else if (sctx->flags & R600_CONTEXT_STREAMOUT_FLUSH) { |