[PATCH 3/5] wined3d: Fixup alpha component in surface_convert_format().

Henri Verbeet hverbeet at gmail.com
Mon Nov 11 12:42:41 CST 2019


On Mon, 11 Nov 2019 at 21:45, Paul Gofman <gofmanp at gmail.com> wrote:
> On 11/11/19 21:09, Henri Verbeet wrote:
> > One more observation is that e.g. WINED3DFMT_B8G8R8X8_UNORM has an
> > equivalent format with alpha, WINED3DFMT_B8G8R8A8_UNORM, which could
> > be used for looking up the masks and byte counts.
>
> But how do I link WINED3DFMT_B8G8R8X8_UNORM, WINED3DFMT_B5G5R5X1_UNORM
> or WINED3DFMT_B4G4R4X4_UNORM to their counterpart with alpha? Should I
> probably still use a table for that, just reference the format with
> alpha instead of directly coding size and mask?
>
Yeah, you'd still need the table to map between the formats.



More information about the wine-devel mailing list