panfrost/midgard/disasm: Cleanup texture op code
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 10 Jun 2019 19:12:27 +0000 (12:12 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 11 Jun 2019 15:44:19 +0000 (08:44 -0700)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/midgard/disassemble.c

index 2ab2e1122cd8fd5a0d8da6fd19923f73261ce93d..7543df3fcf5b14b4e2c13a843b2060b5c4329e2a 100644 (file)
@@ -1043,17 +1043,17 @@ print_texture_format(int format)
 }
 
 static void
-print_texture_op(int format)
+print_texture_op(unsigned op)
 {
         /* Act like a bare name, like ESSL functions */
 
-        switch (format) {
+        switch (op) {
                 DEFINE_CASE(TEXTURE_OP_NORMAL, "texture");
                 DEFINE_CASE(TEXTURE_OP_LOD, "textureLod");
                 DEFINE_CASE(TEXTURE_OP_TEXEL_FETCH, "texelFetch");
 
         default:
-                printf("op_%d", format);
+                printf("tex_%d", op);
                 break;
         }
 }