Commit 4f3d189f authored by Andrey Gusev's avatar Andrey Gusev Committed by Alexandre Julliard

wined3d: Add WINED3DFMT_R16_FLOAT vertex format.

Fixes rendering glitches in Batman: Arkham Knight. Signed-off-by: 's avatarAndrey Gusev <andrey.goosev@gmail.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 1939528d
......@@ -12373,6 +12373,7 @@ static void test_create_input_layout(void)
DXGI_FORMAT_R32_FLOAT,
DXGI_FORMAT_R32_UINT,
DXGI_FORMAT_R32_SINT,
DXGI_FORMAT_R16_FLOAT,
DXGI_FORMAT_R16_UINT,
DXGI_FORMAT_R16_SINT,
DXGI_FORMAT_R8_UINT,
......@@ -13648,6 +13649,7 @@ static void test_format_support(void)
static const struct format_support vertex_buffers[] =
{
{DXGI_FORMAT_R8G8_UINT},
{DXGI_FORMAT_R16_FLOAT},
};
if (!(device = create_device()))
......
......@@ -18552,6 +18552,7 @@ static void test_create_input_layout(void)
DXGI_FORMAT_R32_FLOAT,
DXGI_FORMAT_R32_UINT,
DXGI_FORMAT_R32_SINT,
DXGI_FORMAT_R16_FLOAT,
DXGI_FORMAT_R16_UINT,
DXGI_FORMAT_R16_SINT,
DXGI_FORMAT_R8G8_UNORM,
......@@ -20622,6 +20623,7 @@ static void test_format_support(const D3D_FEATURE_LEVEL feature_level)
static const struct format_support vertex_buffers[] =
{
{DXGI_FORMAT_R8G8_UINT, D3D_FEATURE_LEVEL_10_0},
{DXGI_FORMAT_R16_FLOAT, D3D_FEATURE_LEVEL_10_0},
};
device_desc.feature_level = &feature_level;
......@@ -727,6 +727,7 @@ static const struct wined3d_format_vertex_info format_vertex_info[] =
{WINED3DFMT_R8_UINT, WINED3D_FFP_EMIT_INVALID, GL_UNSIGNED_BYTE},
{WINED3DFMT_R8_SINT, WINED3D_FFP_EMIT_INVALID, GL_BYTE},
{WINED3DFMT_R8G8_UINT, WINED3D_FFP_EMIT_INVALID, GL_UNSIGNED_BYTE},
{WINED3DFMT_R16_FLOAT, WINED3D_FFP_EMIT_INVALID, GL_HALF_FLOAT, ARB_HALF_FLOAT_VERTEX},
{WINED3DFMT_R16_UINT, WINED3D_FFP_EMIT_INVALID, GL_UNSIGNED_SHORT},
{WINED3DFMT_R16_SINT, WINED3D_FFP_EMIT_INVALID, GL_SHORT},
{WINED3DFMT_R32_UINT, WINED3D_FFP_EMIT_INVALID, GL_UNSIGNED_INT},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment