Zebediah Figura : wined3d: Refuse blits between height-scaled formats in the raw blitter.

Alexandre Julliard julliard at winehq.org
Thu Apr 28 16:15:32 CDT 2022


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

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Wed Apr 27 21:23:59 2022 -0500

wined3d: Refuse blits between height-scaled formats in the raw blitter.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/texture.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c
index a73b3b55e4b..5fd38b49132 100644
--- a/dlls/wined3d/texture.c
+++ b/dlls/wined3d/texture.c
@@ -6458,6 +6458,7 @@ static DWORD raw_blitter_blit(struct wined3d_blitter *blitter, enum wined3d_blit
      * We also can't copy between depth/stencil and colour resources, since
      * the formats are considered incompatible in OpenGL. */
     if (op != WINED3D_BLIT_OP_RAW_BLIT || !gl_formats_compatible(src_texture, src_location, dst_texture, dst_location)
+            || ((src_texture->resource.format_flags | dst_texture->resource.format_flags) & WINED3DFMT_FLAG_HEIGHT_SCALE)
             || (src_texture->resource.format->id == dst_texture->resource.format->id
             && (!(src_location & (WINED3D_LOCATION_TEXTURE_RGB | WINED3D_LOCATION_TEXTURE_SRGB))
             || !(dst_location & (WINED3D_LOCATION_TEXTURE_RGB | WINED3D_LOCATION_TEXTURE_SRGB)))))




More information about the wine-cvs mailing list