[Mesa-dev] [PATCH 10/18] panfrost/midgard/disasm: Cleanup texture op code
Alyssa Rosenzweig
alyssa.rosenzweig at collabora.com
Mon Jun 10 22:01:38 UTC 2019
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
---
src/gallium/drivers/panfrost/midgard/disassemble.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/gallium/drivers/panfrost/midgard/disassemble.c b/src/gallium/drivers/panfrost/midgard/disassemble.c
index 6be262f7ba0..c12b2f24e70 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;
}
}
--
2.20.1
More information about the mesa-dev
mailing list