[5/5] ddraw: Emulate a 24 bit depth format without stencil or padding

Henri Verbeet hverbeet at gmail.com
Tue Aug 23 10:46:02 CDT 2011

On 23 August 2011 11:48, Stefan Dösinger <stefandoesinger at gmx.at> wrote:
> 3) Advertise both X8D24 versions if X8D24 is supported.
> Change ddraw_surface_init to make sure we don't have to convert back from
> the wined3d format. Then, once device_parent_create_depth_stencil is gone,
> we'll never convert wined3d depth formats to ddraw formats and we can
> support both X8D24 versions in ddraw without having two versions in wined3d.
That's probably the one you want anyway.

> The ddraw format is already wrong. It claims to be 3 byte without padding,
> but as the test shows it actually has 1 padding byte. I think at the heart
> of this issue is that driver vendors couldn't agree how to represent a 3
> byte depth with one byte padding format in a DDPIXELFORMAT structure.
Sure, but we can try to limit the damage somewhat.

More information about the wine-devel mailing list