mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
tests/hlsl: Fix the results for the 64-bit bit searching functions.
They've always been broken, likely nobody noticed because the CI doesn't support DXC tests on Windows yet.
This commit is contained in:
committed by
Henri Verbeet
parent
87435aca8a
commit
fdf196ce13
Notes:
Henri Verbeet
2025-09-29 13:05:17 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1751
@@ -432,16 +432,16 @@ int64_t i;
|
|||||||
|
|
||||||
uint4 main() : sv_target
|
uint4 main() : sv_target
|
||||||
{
|
{
|
||||||
return uint4(0, firstbitlow(u), firstbithigh(u), firstbithigh(i));
|
return uint4(firstbitlow(u), firstbithigh(u), firstbitlow(i), firstbithigh(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
[test]
|
[test]
|
||||||
uniform 0 uint64_t2 0 0
|
uniform 0 uint64_t2 0 0
|
||||||
todo draw quad
|
todo draw quad
|
||||||
probe (0, 0) u32(0, 0xffffffff, 0xffffffff, 0xffffffff)
|
probe (0, 0) u32(0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff)
|
||||||
uniform 0 int64_t2 -1 -1
|
uniform 0 int64_t2 -1 -1
|
||||||
todo draw quad
|
todo draw quad
|
||||||
probe (0, 0) u32(64, 0, 63, 0xffffffff)
|
probe (0, 0) u32(0, 63, 0, 0xffffffff)
|
||||||
uniform 0 uint64_t2 0xcccccccccccccccc 0xcccccccccccccccc
|
uniform 0 uint64_t2 0xcccccccccccccccc 0xcccccccccccccccc
|
||||||
todo draw quad
|
todo draw quad
|
||||||
probe (0, 0) u32(32, 2, 63, 61)
|
probe (0, 0) u32(2, 63, 2, 61)
|
||||||
|
|||||||
Reference in New Issue
Block a user