mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader: Introduce an instruction flag to suppress masking of bitwise shift counts.
DXIL does not use implicit masking of shift counts.
This commit is contained in:
committed by
Alexandre Julliard
parent
9cb4372378
commit
1929432559
Notes:
Alexandre Julliard
2023-12-12 23:15:46 +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/489
@@ -1577,6 +1577,12 @@ static void shader_dump_instruction_flags(struct vkd3d_d3d_asm_compiler *compile
|
||||
shader_addline(buffer, "p");
|
||||
break;
|
||||
|
||||
case VKD3DSIH_ISHL:
|
||||
case VKD3DSIH_ISHR:
|
||||
case VKD3DSIH_USHR:
|
||||
if (ins->flags & VKD3DSI_SHIFT_UNMASKED)
|
||||
shader_addline(buffer, "_unmasked");
|
||||
/* fall through */
|
||||
default:
|
||||
shader_dump_precise_flags(compiler, ins->flags);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user