Mesa (master): radeonsi: add SWITCH_ON_EOI requirement for 4 SE parts

Marek Olšák mareko at kemper.freedesktop.org
Fri Oct 23 22:03:23 UTC 2015


Module: Mesa
Branch: master
Commit: 96d5879d3850a7e0c921da0c8bfa7ba9993b6aa6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=96d5879d3850a7e0c921da0c8bfa7ba9993b6aa6

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Sun Oct 18 21:43:30 2015 +0200

radeonsi: add SWITCH_ON_EOI requirement for 4 SE parts

Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>

---

 src/gallium/drivers/radeonsi/si_state_draw.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c
index 635fb5f..96448ee 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.c
+++ b/src/gallium/drivers/radeonsi/si_state_draw.c
@@ -292,6 +292,10 @@ static unsigned si_get_ia_multi_vgt_param(struct si_context *sctx,
 		if (info->count_from_stream_output)
 			wd_switch_on_eop = true;
 
+		/* Required on CIK and later. */
+		if (sctx->b.screen->info.max_se > 2 && !wd_switch_on_eop)
+			ia_switch_on_eoi = true;
+
 		/* If the WD switch is false, the IA switch must be false too. */
 		assert(wd_switch_on_eop || !ia_switch_on_eop);
 	}




More information about the mesa-commit mailing list