vkd3d-shader/spirv: Use vsir_opcode_get_name() in spirv_compiler_handle_instruction().

This commit is contained in:
Henri Verbeet
2025-06-10 22:05:34 +02:00
parent dfb3494600
commit 6aeb168d63
Notes: Henri Verbeet 2025-06-11 20:38:03 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1561

View File

@@ -10968,9 +10968,9 @@ static int spirv_compiler_handle_instruction(struct spirv_compiler *compiler,
/* nothing to do */
break;
default:
FIXME("Unhandled instruction %#x.\n", instruction->opcode);
spirv_compiler_error(compiler, VKD3D_SHADER_ERROR_SPV_INVALID_HANDLER,
"Encountered invalid/unhandled instruction handler %#x.", instruction->opcode);
"Unhandled instruction \"%s\" (%#x).",
vsir_opcode_get_name(instruction->opcode, "<unknown>"), instruction->opcode);
break;
}