mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Test the INT_MIN / -1 constant folding special case.
Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4d181bc622
commit
6b6ff48ece
@ -41,3 +41,19 @@ float4 main() : SV_TARGET
|
|||||||
|
|
||||||
return x % y;
|
return x % y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[require]
|
||||||
|
shader model >= 4.0
|
||||||
|
|
||||||
|
[pixel shader]
|
||||||
|
float4 main() : SV_TARGET
|
||||||
|
{
|
||||||
|
int x = -2147483648;
|
||||||
|
int y = -1;
|
||||||
|
|
||||||
|
return x / y;
|
||||||
|
}
|
||||||
|
|
||||||
|
[test]
|
||||||
|
draw quad
|
||||||
|
probe all rgba (-2147483648.0, -2147483648.0, -2147483648.0, -2147483648.0)
|
||||||
|
Loading…
Reference in New Issue
Block a user