summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/midgard/disassemble.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-06-10 12:12:27 -0700
committerAlyssa Rosenzweig <[email protected]>2019-06-11 08:44:19 -0700
commit873a3ed342e82180f06261ef800457ba166587ba (patch)
treedc297a810bc00fdf4e1d021f82aa580e8b366069 /src/gallium/drivers/panfrost/midgard/disassemble.c
parent289405392d94eaaa75bf6a9f892ea5bd55c79221 (diff)
panfrost/midgard/disasm: Cleanup texture op code
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/midgard/disassemble.c')
-rw-r--r--src/gallium/drivers/panfrost/midgard/disassemble.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/panfrost/midgard/disassemble.c b/src/gallium/drivers/panfrost/midgard/disassemble.c
index 2ab2e1122cd..7543df3fcf5 100644
--- a/src/gallium/drivers/panfrost/midgard/disassemble.c
+++ b/src/gallium/drivers/panfrost/midgard/disassemble.c
@@ -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;
}
}