From: Alyssa Rosenzweig Date: Mon, 10 Jun 2019 19:12:27 +0000 (-0700) Subject: panfrost/midgard/disasm: Cleanup texture op code X-Git-Tag: upstream/19.3.0~5625 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=873a3ed342e82180f06261ef800457ba166587ba;p=platform%2Fupstream%2Fmesa.git panfrost/midgard/disasm: Cleanup texture op code Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/midgard/disassemble.c b/src/gallium/drivers/panfrost/midgard/disassemble.c index 2ab2e11..7543df3 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; } }