mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests: Stop probing all pixels when drawing a uniform colour.
This is simply unnecessary and wastes time. As part of this, simply remove the "all" directive. Only for a couple of tests is it even potentially interesting to validate all pixels (e.g. nointerpolation.shader_test), and for those "all" is replaced with an explicit (0, 0, 640, 480) rect. In all other cases we just probe (0, 0).
This commit is contained in:
committed by
Henri Verbeet
parent
021eb28584
commit
d3ba810c98
Notes:
Henri Verbeet
2024-06-14 00:05:14 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/908
@@ -16,7 +16,7 @@ float4 main() : sv_target
|
||||
uniform 0 double2 -4.5 8.5
|
||||
uniform 4 float4 -2.25 4.25 0.0 0.0
|
||||
todo(sm<6) draw quad
|
||||
probe all rgba (-4.5, 8.5, 2.0, 2.0)
|
||||
probe (0, 0) rgba (-4.5, 8.5, 2.0, 2.0)
|
||||
|
||||
|
||||
[pixel shader todo]
|
||||
@@ -33,7 +33,7 @@ uint4 main() : sv_target
|
||||
[test]
|
||||
uniform 0 double2 -4.5 8.500003814697266
|
||||
todo(sm<6) draw quad
|
||||
probe all rgbaui (0, 0xc0120000, 0x80000000, 0x40210000)
|
||||
probe (0, 0) rgbaui (0, 0xc0120000, 0x80000000, 0x40210000)
|
||||
|
||||
|
||||
[pixel shader todo]
|
||||
@@ -49,7 +49,7 @@ float4 main() : sv_target
|
||||
[test]
|
||||
uniform 0 uint4 0xc000000 0x40020000 0x80000000 0xc04be000
|
||||
todo(sm<6) draw quad
|
||||
probe all rgba (2.25, -55.75001526, 0.0, 0.0) 1
|
||||
probe (0, 0) rgba (2.25, -55.75001526, 0.0, 0.0) 1
|
||||
|
||||
|
||||
[pixel shader todo]
|
||||
@@ -64,7 +64,7 @@ float4 main() : sv_target
|
||||
[test]
|
||||
uniform 0 uint4 0x80000000 0xc04be000 0 0
|
||||
todo(sm<6) draw quad
|
||||
probe all rgba (-55.75001526, 0.0, 0.0, 0.0) 1
|
||||
probe (0, 0) rgba (-55.75001526, 0.0, 0.0, 0.0) 1
|
||||
|
||||
|
||||
[require]
|
||||
@@ -86,7 +86,7 @@ float4 main() : sv_target
|
||||
uniform 0 uint64_t2 0x500000001 0x100000002
|
||||
uniform 4 uint4 10 4 0 0
|
||||
draw quad
|
||||
probe all rgba (1.0, 2.0, 2147483648.0, 1073741824.0)
|
||||
probe (0, 0) rgba (1.0, 2.0, 2147483648.0, 1073741824.0)
|
||||
|
||||
|
||||
[pixel shader]
|
||||
@@ -104,4 +104,4 @@ float4 main() : sv_target
|
||||
uniform 0 int64_t2 -21474836481 0x100000002
|
||||
uniform 4 int4 -20 8 0 0
|
||||
draw quad
|
||||
probe all rgba (-1.0, 2.0, 1073741824.0, 536870912.0)
|
||||
probe (0, 0) rgba (-1.0, 2.0, 1073741824.0, 536870912.0)
|
||||
|
Reference in New Issue
Block a user