WineD3D: Implement depth copy from onscreen to offscreen surface when depth fixup is used

H. Verbeet hverbeet at
Thu Mar 6 02:23:14 CST 2008

On 06/03/2008, Frank Richter <frank.richter at> wrote:
This doesn't work.
The problem with doing depth copy with fixed up depth stencil is that
the size of the render buffer is different from the depth stencil
size. Basically what needs to happen is that the render buffer
contents need to be blitted to the depth stencil before copying the
depth stencil from offscreen to onscreen.

Aside from that, depth stencil copying is broken (in that it doesn't
always copy when it should, and sometimes copies when it shouldn't).
I've got a patch that fixes this, but it causes regressions. Changing
anything in the depth copying code would cause some nasty conflicts in
my patch. Of course if you're interested in tracking down regressions
I'd be happy to send you the patch.

More information about the wine-devel mailing list