Zebediah Figura : wined3d: Refuse blits between height-scaled formats in the CPU blitter.
Alexandre Julliard
julliard at winehq.org
Thu Apr 28 16:15:32 CDT 2022
Module: wine
Branch: master
Commit: 374c58ccb175538019a54a80076b8b89e2379f8e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=374c58ccb175538019a54a80076b8b89e2379f8e
Author: Zebediah Figura <zfigura at codeweavers.com>
Date: Wed Apr 27 21:23:57 2022 -0500
wined3d: Refuse blits between height-scaled formats in the CPU 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/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))
{
More information about the wine-cvs
mailing list