summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_compute.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2016-04-19 13:52:32 +0200
committerBas Nieuwenhuizen <[email protected]>2016-04-19 18:31:23 +0200
commit6c833ba1ab7ffe615d8c025a7452984083c1143b (patch)
treea844098a0f4a40038ad6142839125f589d536eb6 /src/gallium/drivers/radeonsi/si_compute.c
parente0b729c544ab0f25cd90af5daffdff0940743e14 (diff)
radeonsi: Add CE synchronization for compute dispatches.
Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_compute.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_compute.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c
index 105cf8cb99f..557e89236fa 100644
--- a/src/gallium/drivers/radeonsi/si_compute.c
+++ b/src/gallium/drivers/radeonsi/si_compute.c
@@ -474,7 +474,11 @@ static void si_launch_grid(
if (program->ir_type == PIPE_SHADER_IR_TGSI)
si_setup_tgsi_grid(sctx, info);
+ si_ce_pre_draw_synchronization(sctx);
+
si_emit_dispatch_packets(sctx, info);
+
+ si_ce_post_draw_synchronization(sctx);
}