freedreno/ir3: skip virtual outputs in standalone compiler
authorRob Clark <robclark@freedesktop.org>
Sat, 25 Oct 2014 14:23:47 +0000 (10:23 -0400)
committerRob Clark <robclark@freedesktop.org>
Sat, 25 Oct 2014 14:25:15 +0000 (10:25 -0400)
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@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_cmdline.c

index b2e55372d8690ab53e53b90019bbd5dbcf3e9e84..96d89d6ed7fd9a39e0c72267c756833fc42ae620 100644 (file)
@@ -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);