wined3d: Mark some d3d9 formats as normalized formats.

Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Stefan Dösinger 2022-05-16 12:58:06 -05:00 committed by Alexandre Julliard
parent e8c9588e2a
commit 6cb0e8d025
1 changed files with 10 additions and 0 deletions

View File

@ -346,6 +346,16 @@ static const struct wined3d_format_base_flags format_base_flags[] =
{WINED3DFMT_R32_UINT, WINED3DFMT_FLAG_CAST_TO_BLOCK | WINED3DFMT_FLAG_INDEX_BUFFER},
{WINED3DFMT_R32_SINT, WINED3DFMT_FLAG_CAST_TO_BLOCK},
{WINED3DFMT_R16_UINT, WINED3DFMT_FLAG_INDEX_BUFFER},
{WINED3DFMT_A8_UNORM, WINED3DFMT_FLAG_NORMALISED},
{WINED3DFMT_B10G10R10A2_UNORM, WINED3DFMT_FLAG_NORMALISED},
{WINED3DFMT_B2G3R3_UNORM, WINED3DFMT_FLAG_NORMALISED},
{WINED3DFMT_B4G4R4A4_UNORM, WINED3DFMT_FLAG_NORMALISED},
{WINED3DFMT_B4G4R4X4_UNORM, WINED3DFMT_FLAG_NORMALISED},
{WINED3DFMT_B5G5R5A1_UNORM, WINED3DFMT_FLAG_NORMALISED},
{WINED3DFMT_B5G5R5X1_UNORM, WINED3DFMT_FLAG_NORMALISED},
{WINED3DFMT_B5G6R5_UNORM, WINED3DFMT_FLAG_NORMALISED},
{WINED3DFMT_B8G8R8_UNORM, WINED3DFMT_FLAG_NORMALISED},
{WINED3DFMT_R10G10B10A2_UNORM, WINED3DFMT_FLAG_NORMALISED},
};
static void rgb888_from_rgb565(WORD rgb565, BYTE *r, BYTE *g, BYTE *b)