vkd3d-shader/ir: Use vsir_opcode_get_name() in vsir_program_lower_instructions().

This commit is contained in:
Henri Verbeet
2025-06-03 15:26:00 +02:00
parent c8e6d35e17
commit 83ed825e5a
Notes: Henri Verbeet 2025-06-10 18:06:20 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Francisco Casas (@fcasas)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1549

View File

@@ -1416,8 +1416,8 @@ static enum vkd3d_result vsir_program_lower_instructions(struct vsir_program *pr
case VKD3DSIH_TEXREG2GB: case VKD3DSIH_TEXREG2GB:
case VKD3DSIH_TEXREG2RGB: case VKD3DSIH_TEXREG2RGB:
vkd3d_shader_error(ctx->message_context, &ins->location, VKD3D_SHADER_ERROR_VSIR_NOT_IMPLEMENTED, vkd3d_shader_error(ctx->message_context, &ins->location, VKD3D_SHADER_ERROR_VSIR_NOT_IMPLEMENTED,
"Aborting due to unimplemented feature: Combined sampler instruction %#x.", "Aborting due to unimplemented feature: Combined sampler instruction \"%s\" (%#x).",
ins->opcode); vsir_opcode_get_name(ins->opcode, "<unknown>"), ins->opcode);
return VKD3D_ERROR_NOT_IMPLEMENTED; return VKD3D_ERROR_NOT_IMPLEMENTED;
default: default: