radeonsi: handle R600_CONTEXT_PS_PARTIAL_FLUSH in si_emit_cache_flush
authorMarek Olšák <marek.olsak@amd.com>
Mon, 13 Jan 2014 12:15:19 +0000 (13:15 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 23 Jan 2014 00:47:14 +0000 (01:47 +0100)
For consistency only, This is unused by radeonsi currently.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_state_draw.c

index f36a1b873984480da680ade2f04cede32acb9df7..4d347ed07746b13050fcc579e6e27cb86a253c80 100644 (file)
@@ -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) {