mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/spirv: Handle the UMUL instruction.
This commit is contained in:
committed by
Alexandre Julliard
parent
acbc80cba2
commit
4905d047bd
Notes:
Alexandre Julliard
2023-11-06 23:18:07 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/409
@@ -6949,7 +6949,7 @@ static void spirv_compiler_emit_imul(struct spirv_compiler *compiler,
|
|||||||
uint32_t type_id, val_id, src0_id, src1_id;
|
uint32_t type_id, val_id, src0_id, src1_id;
|
||||||
|
|
||||||
if (dst[0].reg.type != VKD3DSPR_NULL)
|
if (dst[0].reg.type != VKD3DSPR_NULL)
|
||||||
FIXME("Extended multiplies not implemented.\n"); /* SpvOpSMulExtended */
|
FIXME("Extended multiplies not implemented.\n"); /* SpvOpSMulExtended/SpvOpUMulExtended */
|
||||||
|
|
||||||
if (dst[1].reg.type == VKD3DSPR_NULL)
|
if (dst[1].reg.type == VKD3DSPR_NULL)
|
||||||
return;
|
return;
|
||||||
@@ -9440,6 +9440,7 @@ static int spirv_compiler_handle_instruction(struct spirv_compiler *compiler,
|
|||||||
spirv_compiler_emit_sincos(compiler, instruction);
|
spirv_compiler_emit_sincos(compiler, instruction);
|
||||||
break;
|
break;
|
||||||
case VKD3DSIH_IMUL:
|
case VKD3DSIH_IMUL:
|
||||||
|
case VKD3DSIH_UMUL:
|
||||||
spirv_compiler_emit_imul(compiler, instruction);
|
spirv_compiler_emit_imul(compiler, instruction);
|
||||||
break;
|
break;
|
||||||
case VKD3DSIH_IMAD:
|
case VKD3DSIH_IMAD:
|
||||||
|
|||||||
Reference in New Issue
Block a user