From d6a40843215d5c281b9e730b575af2eb20bfd316 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sat, 7 Jun 2025 16:44:16 +0200 Subject: [PATCH] vkd3d-shader/fx: Use a version-neutral name for the opcode table. Signed-off-by: Nikolay Sivov --- libs/vkd3d-shader/fx.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libs/vkd3d-shader/fx.c b/libs/vkd3d-shader/fx.c index ba714a704..01643a862 100644 --- a/libs/vkd3d-shader/fx.c +++ b/libs/vkd3d-shader/fx.c @@ -4720,7 +4720,7 @@ static const struct uint32_t opcode; const char *name; } -fx_4_fxlc_opcodes[] = +fxlc_opcodes[] = { { 0x100, "mov" }, { 0x101, "neg" }, @@ -4775,14 +4775,14 @@ fx_4_fxlc_opcodes[] = { 0x70e, "d3ds_dotswiz" }, }; -static const char *fx_4_get_fxlc_opcode_name(uint32_t opcode) +static const char *get_fxlc_opcode_name(uint32_t opcode) { size_t i; - for (i = 0; i < ARRAY_SIZE(fx_4_fxlc_opcodes); ++i) + for (i = 0; i < ARRAY_SIZE(fxlc_opcodes); ++i) { - if (fx_4_fxlc_opcodes[i].opcode == opcode) - return fx_4_fxlc_opcodes[i].name; + if (fxlc_opcodes[i].opcode == opcode) + return fxlc_opcodes[i].name; } return ""; @@ -4980,7 +4980,7 @@ static void fx_4_parse_fxlvm_expression(struct fx_parser *parser, uint32_t offse code.scalar = false; parse_fx_print_indent(parser); - vkd3d_string_buffer_printf(&parser->buffer, "%s ", fx_4_get_fxlc_opcode_name(opcode)); + vkd3d_string_buffer_printf(&parser->buffer, "%s ", get_fxlc_opcode_name(opcode)); /* Destination first. */ fx_4_parse_fxlc_argument(parser, offset + sizeof(arg) * src_count, &code);