freedreno/a2xx: silence missing case 'SHADER_COMPUTE' warning (v2)
authorfrancians@gmail.com <francians@gmail.com>
Fri, 22 Jul 2016 06:28:46 +0000 (08:28 +0200)
committerRob Clark <robdclark@gmail.com>
Sat, 23 Jul 2016 13:14:18 +0000 (09:14 -0400)
v2: no need for break after an unreachable (Matt Turner)

Signed-off-by: Francesco Ansanelli <francians@gmail.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a2xx/disasm-a2xx.c

index f00d5d4dcf5511872f5a91ba7ad0c20d62723177..fc309e8b495ce7a51ad62e4848f0a740da457398 100644 (file)
@@ -111,6 +111,8 @@ static void print_export_comment(uint32_t num, enum shader_t type)
                case 0:  name = "gl_FragColor"; break;
                }
                break;
+       case SHADER_COMPUTE:
+               unreachable("not reached");
        }
        /* if we had a symbol table here, we could look
         * up the name of the varying..