libs/vkd3d: Fix rendering to DXGI_FORMAT_A8_UNORM.

In Direct3D alpha is taken from the .r component.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia
2018-05-24 13:08:36 +02:00
committed by Alexandre Julliard
parent 40ee9fa0e9
commit 78c952ee5f
2 changed files with 27 additions and 5 deletions

View File

@@ -694,7 +694,7 @@ static void check_readback_data_uint8_(unsigned int line, struct resource_readba
if (!all_match)
break;
}
todo_(line)(all_match, "Got 0x%02x, expected 0x%02x at (%u, %u).\n", got, expected, x, y);
ok_(line)(all_match, "Got 0x%02x, expected 0x%02x at (%u, %u).\n", got, expected, x, y);
}
#define check_sub_resource_uint8(a, b, c, d, e, f) check_sub_resource_uint8_(__LINE__, a, b, c, d, e, f)