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

This commit is contained in:
Henri Verbeet
2025-06-11 20:55:04 +02:00
parent 0778fb93df
commit 81279b763b
Notes: Henri Verbeet 2025-06-16 17:48:30 +02:00
Approved-by: Francisco Casas (@fcasas)
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1566

View File

@@ -8294,7 +8294,9 @@ static void spirv_compiler_emit_bitfield_instruction(struct spirv_compiler *comp
case VKD3DSIH_IBFE: op = SpvOpBitFieldSExtract; break;
case VKD3DSIH_UBFE: op = SpvOpBitFieldUExtract; break;
default:
ERR("Unexpected instruction %#x.\n", instruction->opcode);
spirv_compiler_error(compiler, VKD3D_SHADER_ERROR_SPV_NOT_IMPLEMENTED,
"Unhandled instruction \"%s\" (%#x).",
vsir_opcode_get_name(instruction->opcode, "<unknown>"), instruction->opcode);
return;
}