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
@@ -9,7 +9,7 @@ float4 main() : sv_target
|
||||
[test]
|
||||
uniform 0 float4 9.0 2.0 3.0 4.0
|
||||
todo(glsl) draw quad
|
||||
probe all rgba (9.0, 9.0, 9.0, 9.0)
|
||||
probe (0, 0) rgba (9.0, 9.0, 9.0, 9.0)
|
||||
|
||||
[pixel shader]
|
||||
float1x1 m;
|
||||
@@ -22,7 +22,7 @@ float4 main() : sv_target
|
||||
[test]
|
||||
uniform 0 float4 1.0 2.0 3.0 4.0
|
||||
todo(glsl) draw quad
|
||||
probe all rgba (1.0, 1.0, 1.0, 1.0)
|
||||
probe (0, 0) rgba (1.0, 1.0, 1.0, 1.0)
|
||||
|
||||
[pixel shader]
|
||||
float2x2 m;
|
||||
@@ -36,7 +36,7 @@ float4 main() : sv_target
|
||||
uniform 0 float4 1.0 2.0 3.0 4.0
|
||||
uniform 4 float4 5.0 6.0 7.0 8.0
|
||||
todo(glsl) draw quad
|
||||
probe all rgba (-4.0, -4.0, -4.0, -4.0)
|
||||
probe (0, 0) rgba (-4.0, -4.0, -4.0, -4.0)
|
||||
|
||||
[pixel shader]
|
||||
float2x1 m;
|
||||
@@ -50,7 +50,7 @@ float4 main() : sv_target
|
||||
uniform 0 float4 1.0 2.0 3.0 4.0
|
||||
uniform 4 float4 5.0 6.0 7.0 8.0
|
||||
todo(glsl) draw quad
|
||||
probe all rgba (1.0, 1.0, 1.0, 1.0)
|
||||
probe (0, 0) rgba (1.0, 1.0, 1.0, 1.0)
|
||||
|
||||
[pixel shader]
|
||||
float3x3 m;
|
||||
@@ -65,7 +65,7 @@ uniform 0 float4 1.0 2.0 3.0 4.0
|
||||
uniform 4 float4 5.0 -6.0 7.0 8.0
|
||||
uniform 8 float4 9.0 10.0 11.0 12.0
|
||||
todo(glsl) draw quad
|
||||
probe all rgba (192.0, 192.0, 192.0, 192.0)
|
||||
probe (0, 0) rgba (192.0, 192.0, 192.0, 192.0)
|
||||
|
||||
[pixel shader]
|
||||
float4x4 m;
|
||||
@@ -81,7 +81,7 @@ uniform 4 float4 5.0 6.0 -7.0 8.0
|
||||
uniform 8 float4 9.0 10.0 11.0 12.0
|
||||
uniform 12 float4 13.0 14.0 15.0 16.0
|
||||
todo(glsl) draw quad
|
||||
probe all rgba (-672.0, -672.0, -672.0, -672.0)
|
||||
probe (0, 0) rgba (-672.0, -672.0, -672.0, -672.0)
|
||||
|
||||
[pixel shader]
|
||||
float3x4 m;
|
||||
@@ -97,7 +97,7 @@ uniform 4 float4 5.0 -6.0 7.0 0.0
|
||||
uniform 8 float4 9.0 10.0 11.0 0.0
|
||||
uniform 12 float4 0.0 0.0 0.0 0.0
|
||||
todo(glsl) draw quad
|
||||
probe all rgba (192.0, 192.0, 192.0, 192.0)
|
||||
probe (0, 0) rgba (192.0, 192.0, 192.0, 192.0)
|
||||
|
||||
[pixel shader fail]
|
||||
float1 v;
|
||||
|
Reference in New Issue
Block a user