mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/ir: Repurpose IDIV to compute plain signed division.
It doesn't compute signed remainder any more.
This commit is contained in:
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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user