[PATCH 4/5] wined3d: Mark some d3d9 formats as normalized formats.
Zebediah Figura
zfigura at codeweavers.com
Mon May 16 00:49:33 CDT 2022
On 5/15/22 07:29, Stefan Dösinger wrote:
> Signed-off-by: Stefan Dösinger <stefan at codeweavers.com>
>
> ---
>
> wined3d_typed_format_info seems like the wrong place for this because
> these formats do not have matching typeless formats.
> ---
> dlls/wined3d/utils.c | 11 ++++++++++-
> 1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
> index 61a86082249..29bebcf0cfc 100644
> --- a/dlls/wined3d/utils.c
> +++ b/dlls/wined3d/utils.c
> @@ -345,7 +345,16 @@ static const struct wined3d_format_base_flags format_base_flags[] =
> {WINED3DFMT_R32_FLOAT, WINED3DFMT_FLAG_CAST_TO_BLOCK},
> {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},
I assume this deletion is accidental; I'll send a new revision with the
line restored.
> + {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)
More information about the wine-devel
mailing list