mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests: Specify the arguments to "probe rect" as right and bottom, instead of width and height.
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:
committed by
Alexandre Julliard
parent
83a3de8529
commit
d2872fa33a
@@ -10,4 +10,4 @@ float4 main(float4 pos : SV_POSITION) : SV_TARGET
|
|||||||
[test]
|
[test]
|
||||||
draw quad
|
draw quad
|
||||||
probe rect rgba (0, 0, 200, 480) (0.9, 0.8, 0.7, 0.6)
|
probe rect rgba (0, 0, 200, 480) (0.9, 0.8, 0.7, 0.6)
|
||||||
probe rect rgba (200, 0, 440, 480) (0.1, 0.2, 0.3, 0.4)
|
probe rect rgba (200, 0, 640, 480) (0.1, 0.2, 0.3, 0.4)
|
||||||
|
@@ -419,22 +419,22 @@ static void parse_test_directive(struct shader_runner *runner, const char *line)
|
|||||||
}
|
}
|
||||||
else if (match_string(line, "probe rect rgba", &line))
|
else if (match_string(line, "probe rect rgba", &line))
|
||||||
{
|
{
|
||||||
unsigned int x, y, w, h, ulps;
|
unsigned int left, top, right, bottom, ulps;
|
||||||
struct vec4 v;
|
struct vec4 v;
|
||||||
RECT rect;
|
RECT rect;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = sscanf(line, "( %u , %u , %u , %u ) ( %f , %f , %f , %f ) %u",
|
ret = sscanf(line, "( %d , %d , %d , %d ) ( %f , %f , %f , %f ) %u",
|
||||||
&x, &y, &w, &h, &v.x, &v.y, &v.z, &v.w, &ulps);
|
&left, &top, &right, &bottom, &v.x, &v.y, &v.z, &v.w, &ulps);
|
||||||
if (ret < 8)
|
if (ret < 8)
|
||||||
fatal_error("Malformed probe arguments '%s'.\n", line);
|
fatal_error("Malformed probe arguments '%s'.\n", line);
|
||||||
if (ret < 9)
|
if (ret < 9)
|
||||||
ulps = 0;
|
ulps = 0;
|
||||||
|
|
||||||
rect.left = x;
|
rect.left = left;
|
||||||
rect.right = x + w;
|
rect.top = top;
|
||||||
rect.top = y;
|
rect.right = right;
|
||||||
rect.bottom = y + h;
|
rect.bottom = bottom;
|
||||||
runner->ops->probe_vec4(runner, &rect, &v, ulps);
|
runner->ops->probe_vec4(runner, &rect, &v, ulps);
|
||||||
}
|
}
|
||||||
else if (match_string(line, "probe rgba", &line))
|
else if (match_string(line, "probe rgba", &line))
|
||||||
|
Reference in New Issue
Block a user