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:
Elizabeth Figura
2024-02-10 13:16:22 -06:00
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
163 changed files with 1003 additions and 1007 deletions

View File

@@ -35,7 +35,7 @@ float4 main() : sv_target
[test]
todo(glsl) draw quad
probe all rgba (41.0, 41.0, 41.0, 1089.0)
probe (0, 0) rgba (41.0, 41.0, 41.0, 1089.0)
% If no component in a texture array is used, and it doesn't have a register reservation, no
@@ -51,7 +51,7 @@ float4 main() : sv_target
[test]
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 99.0)
probe (0, 0) rgba (0.0, 0.0, 0.0, 99.0)
% Register reservations force to reserve all the resource registers. Even if unused.
@@ -66,7 +66,7 @@ float4 main() : sv_target
[test]
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 99.0)
probe (0, 0) rgba (1.0, 1.0, 1.0, 99.0)
% Register reservation with incorrect register type.
@@ -85,14 +85,14 @@ shader model < 6.0
[test]
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 99.0)
probe (0, 0) rgba (0.0, 0.0, 0.0, 99.0)
[require]
shader model >= 6.0
[test]
draw quad
probe all rgba (1.0, 1.0, 1.0, 99.0)
probe (0, 0) rgba (1.0, 1.0, 1.0, 99.0)
[require]
shader model >= 4.0
@@ -111,7 +111,7 @@ float4 main() : sv_target
[test]
todo(glsl) draw quad
probe all rgba (0.0, 0.0, 0.0, 99.0)
probe (0, 0) rgba (0.0, 0.0, 0.0, 99.0)
[pixel shader]
Texture2D unused[2][2] : register(t0);
@@ -124,7 +124,7 @@ float4 main() : sv_target
[test]
todo(glsl) draw quad
probe all rgba (4.0, 4.0, 4.0, 99.0)
probe (0, 0) rgba (4.0, 4.0, 4.0, 99.0)
% Overlapping reservations, both overlapping objects are unused.
@@ -140,7 +140,7 @@ float4 main() : sv_target
[test]
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 99.0)
probe (0, 0) rgba (1.0, 1.0, 1.0, 99.0)
% Overlapping reservations
@@ -155,7 +155,7 @@ float4 main() : sv_target
[test]
todo(glsl) draw quad
probe all rgba (2.0, 2.0, 2.0, 99.0)
probe (0, 0) rgba (2.0, 2.0, 2.0, 99.0)
[pixel shader]
@@ -169,7 +169,7 @@ float4 main() : sv_target
[test]
todo(glsl) draw quad
probe all rgba (2.0, 2.0, 2.0, 99.0)
probe (0, 0) rgba (2.0, 2.0, 2.0, 99.0)
[require]
@@ -225,7 +225,7 @@ float4 main() : sv_target
[test]
todo(sm<6) draw quad
todo(sm<6) probe all rgba (0.5, 0.5, 0.5, 99.0)
todo(sm<6) probe (0,0) rgba (0.5, 0.5, 0.5, 99.0)
[pixel shader]
@@ -242,4 +242,4 @@ float4 main() : sv_target
[test]
todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0, 99.0)
probe (0, 0) rgba (1.0, 1.0, 1.0, 99.0)