aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state_draw.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-08-02 01:44:15 +0200
committerMarek Olšák <[email protected]>2013-08-17 01:48:25 +0200
commit2a4b2e23053db846903199ed1a892fe72da70750 (patch)
tree263ee2278fefd25296b6370dcbc71856abed01d5 /src/gallium/drivers/radeonsi/si_state_draw.c
parent2f1c449415903332489a05e4037b8f3f5aa15342 (diff)
radeonsi: implement MSAA colorbuffer compression for rendering
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state_draw.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_state_draw.c11
1 files changed, 11 insertions, 0 deletions
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);