mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader: Compute XfbOffset for the slot of the specified element.
Fixes NVIDIA HairWorks GPU crash on Metro Exodus, and test failures in test_line_tessellation(). Based on a vkd3d-proton patch by Hans-Kristian Arntzen. Signed-off-by: Conor McCarthy <cmccarthy@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
8860c4d077
commit
b01104e47d
@@ -28503,13 +28503,11 @@ static void test_line_tessellation(void)
|
||||
data = get_readback_data(&rb, i + 2048 / (2 * sizeof(*data)), 0, 0, 2 * sizeof(*data));
|
||||
expected = &expected_data[3 * i + 1];
|
||||
bug_if(is_nvidia_device(context.device))
|
||||
todo_if(i != 6)
|
||||
ok(compare_vec4(data, expected, 1),
|
||||
"Got color {%.8e, %.8e, %.8e, %.8e}, expected {%.8e, %.8e, %.8e, %.8e} at %u.\n",
|
||||
data->x, data->y, data->z, data->w, expected->x, expected->y, expected->z, expected->w, i);
|
||||
++data;
|
||||
expected = &expected_data[3 * i + 2];
|
||||
todo
|
||||
ok(compare_vec4(data, expected, 1),
|
||||
"Got primitive ID {%.8e, %.8e, %.8e, %.8e}, expected {%.8e, %.8e, %.8e, %.8e} at %u.\n",
|
||||
data->x, data->y, data->z, data->w, expected->x, expected->y, expected->z, expected->w, i);
|
||||
|
Reference in New Issue
Block a user