Mesa (master): freedreno/ir3: skip virtual outputs in standalone compiler

Rob Clark robclark at kemper.freedesktop.org
Sat Oct 25 14:25:28 UTC 2014


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

Author: Rob Clark <robclark at freedesktop.org>
Date:   Sat Oct 25 10:23:47 2014 -0400

freedreno/ir3: skip virtual outputs in standalone compiler

Kills get added to the outputs list, to ensure they get scheduled.  But
they aren't *really* outputs so skip them in the header comment block.

Signed-off-by: Rob Clark <robclark at freedesktop.org>

---

 src/gallium/drivers/freedreno/ir3/ir3_cmdline.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
index b2e5537..96d89d6 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
@@ -69,6 +69,9 @@ static void dump_info(struct ir3_shader_variant *so, const char *str)
 			uint8_t regid;
 			if (!block->outputs[i])
 				continue;
+			/* kill shows up as a virtual output.. skip it! */
+			if (is_kill(block->outputs[i]))
+				continue;
 			regid = block->outputs[i]->regs[0]->num;
 			debug_printf("@out(r%d.%c)\tout%d\n",
 					(regid >> 2), "xyzw"[regid & 0x3], i);




More information about the mesa-commit mailing list