[PATCH 1/3] wined3d: Refuse blits between height-scaled formats in the CPU blitter.

Zebediah Figura zfigura at codeweavers.com
Wed Apr 27 21:23:57 CDT 2022


Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 dlls/wined3d/surface.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 3216439f32b..5feeba3be2d 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -853,6 +853,14 @@ static HRESULT surface_cpu_blt(struct wined3d_texture *dst_texture, unsigned int
         goto release;
     }
 
+    if ((src_fmt_flags | dst_fmt_flags) & WINED3DFMT_FLAG_HEIGHT_SCALE)
+    {
+        FIXME("Unsupported blit between height-scaled formats (src %s, dst %s).\n",
+                debug_d3dformat(src_format->id), debug_d3dformat(dst_format->id));
+        hr = E_NOTIMPL;
+        goto release;
+    }
+
     if (filter != WINED3D_TEXF_NONE && filter != WINED3D_TEXF_POINT
             && (src_width != dst_width || src_height != dst_height))
     {
-- 
2.35.1




More information about the wine-devel mailing list