vkd3d-shader/ir: Repurpose IDIV to compute plain signed division.

It doesn't compute signed remainder any more.
This commit is contained in:
Giovanni Mascellani
2025-06-10 19:32:54 +02:00
committed by Henri Verbeet
parent 823a8724de
commit ada09d003d
Notes: Henri Verbeet 2025-06-25 17:09:38 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1603
3 changed files with 6 additions and 9 deletions

View File

@@ -4638,7 +4638,7 @@ static void sm6_parser_emit_binop(struct sm6_parser *sm6, const struct dxil_reco
dst->type = a->type;
if (handler_idx == VSIR_OP_UDIV || handler_idx == VSIR_OP_IDIV)
if (handler_idx == VSIR_OP_UDIV)
{
struct vkd3d_shader_dst_param *dst_params = instruction_dst_params_alloc(ins, 2, sm6);
unsigned int index = code != BINOP_UDIV && code != BINOP_SDIV;