radeonsi/gfx9: emit BREAK_BATCH in emit_framebuffer_state
authorMarek Olšák <marek.olsak@amd.com>
Sun, 6 Nov 2016 18:25:12 +0000 (19:25 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 30 Mar 2017 12:44:33 +0000 (14:44 +0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_state.c

index 1a42ad84f6884bd87ff1a172c5a7d367ac520b35..1b7aaa9a6905f6c26fbea663a812f5d77c4111e1 100644 (file)
@@ -2804,6 +2804,11 @@ static void si_emit_framebuffer_state(struct si_context *sctx, struct r600_atom
        radeon_set_context_reg(cs, R_028208_PA_SC_WINDOW_SCISSOR_BR,
                               S_028208_BR_X(state->width) | S_028208_BR_Y(state->height));
 
+       if (sctx->b.chip_class >= GFX9) {
+               radeon_emit(cs, PKT3(PKT3_EVENT_WRITE, 0, 0));
+               radeon_emit(cs, EVENT_TYPE(V_028A90_BREAK_BATCH) | EVENT_INDEX(0));
+       }
+
        sctx->framebuffer.dirty_cbufs = 0;
        sctx->framebuffer.dirty_zsbuf = false;
 }