Andrew Wesie : wined3d: Use raw blit for supported depth-stencil blits.

Alexandre Julliard julliard at winehq.org
Mon Sep 3 16:26:10 CDT 2018


Module: wine
Branch: master
Commit: c3af72019ef1141610d2116d66e3fb7591832557
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c3af72019ef1141610d2116d66e3fb7591832557

Author: Andrew Wesie <awesie at gmail.com>
Date:   Sat Sep  1 18:31:37 2018 -0500

wined3d: Use raw blit for supported depth-stencil blits.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45747
Signed-off-by: Andrew Wesie <awesie at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/surface.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index a297d55..d1847be 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -3406,9 +3406,13 @@ HRESULT texture2d_blt(struct wined3d_texture *dst_texture, unsigned int dst_sub_
         else
             dst_location = dst_texture->resource.map_binding;
 
+        if ((flags & WINED3D_BLT_RAW) || (!scale && !convert && !resolve))
+            blit_op = WINED3D_BLIT_OP_RAW_BLIT;
+        else
+            blit_op = WINED3D_BLIT_OP_DEPTH_BLIT;
+
         context = context_acquire(device, dst_texture, dst_sub_resource_idx);
-        valid_locations = device->blitter->ops->blitter_blit(device->blitter,
-                WINED3D_BLIT_OP_DEPTH_BLIT, context,
+        valid_locations = device->blitter->ops->blitter_blit(device->blitter, blit_op, context,
                 src_texture, src_sub_resource_idx, src_texture->resource.draw_binding, &src_rect,
                 dst_texture, dst_sub_resource_idx, dst_location, &dst_rect, NULL, filter);
         context_release(context);




More information about the wine-cvs mailing list