[PATCH] wined3d: Use raw blit for supported depth-stencil blits.
Andrew Wesie
awesie at gmail.com
Sat Sep 1 18:31:37 CDT 2018
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45747
Signed-off-by: Andrew Wesie <awesie at gmail.com>
---
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);
--
2.7.4
More information about the wine-devel
mailing list