vtn: handle OpFmaKHR

Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41165>
This commit is contained in:
Karol Herbst 2026-04-20 04:13:07 +02:00 committed by Marge Bot
parent 3e158b713c
commit d534a2057f
2 changed files with 3 additions and 0 deletions

View file

@ -80,6 +80,7 @@ static const struct spirv_capabilities implemented_capabilities = {
.Float16Buffer = true,
.Float64 = true,
.FloatControls2 = true,
.FMAKHR = true,
.FragmentBarycentricKHR = true,
.FragmentDensityEXT = true,
.FragmentFullyCoveredEXT = true,
@ -6983,6 +6984,7 @@ vtn_handle_body_instruction(struct vtn_builder *b, SpvOp opcode,
case SpvOpFSub:
case SpvOpIMul:
case SpvOpFMul:
case SpvOpFmaKHR:
case SpvOpUDiv:
case SpvOpSDiv:
case SpvOpFDiv:

View file

@ -281,6 +281,7 @@ vtn_nir_alu_op_for_spirv_opcode(struct vtn_builder *b,
case SpvOpFSub: return nir_op_fsub;
case SpvOpIMul: return nir_op_imul;
case SpvOpFMul: return nir_op_fmul;
case SpvOpFmaKHR: return nir_op_ffma;
case SpvOpUDiv: return nir_op_udiv;
case SpvOpSDiv: return nir_op_idiv;
case SpvOpFDiv: return nir_op_fdiv;