From 2a4b2e23053db846903199ed1a892fe72da70750 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 2 Aug 2013 01:44:15 +0200 Subject: radeonsi: implement MSAA colorbuffer compression for rendering MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Michel Dänzer --- src/gallium/drivers/radeonsi/si_state_draw.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/gallium/drivers/radeonsi/si_state_draw.c') diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index 6be10c84cc9..c1b1bae5f98 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.c +++ b/src/gallium/drivers/radeonsi/si_state_draw.c @@ -706,6 +706,17 @@ void si_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info) si_pm4_set_state(rctx, sync, pm4); } + if (rctx->flush_and_inv_cb_meta) { + struct si_pm4_state *pm4 = si_pm4_alloc_state(rctx); + + if (pm4 == NULL) + return; + + si_cmd_flush_and_inv_cb_meta(pm4); + si_pm4_set_state(rctx, flush_and_inv_cb_meta, pm4); + rctx->flush_and_inv_cb_meta = false; + } + /* Emit states. */ rctx->pm4_dirty_cdwords += si_pm4_dirty_dw(rctx); -- cgit v1.2.3