Henri Verbeet : wined3d: Allow decompression blits on system memory resources in ffp_blit_supported ().
Alexandre Julliard
julliard at winehq.org
Wed Feb 8 15:52:12 CST 2017
Module: wine
Branch: master
Commit: 807733f1c99e2cf2dede66af8381685e35c8b277
URL: http://source.winehq.org/git/wine.git/?a=commit;h=807733f1c99e2cf2dede66af8381685e35c8b277
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Wed Feb 8 16:46:35 2017 +0100
wined3d: Allow decompression blits on system memory resources in ffp_blit_supported().
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/surface.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index b4e2025..222159b 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2930,7 +2930,11 @@ static BOOL ffp_blit_supported(const struct wined3d_gl_info *gl_info,
const RECT *src_rect, DWORD src_usage, enum wined3d_pool src_pool, const struct wined3d_format *src_format,
const RECT *dst_rect, DWORD dst_usage, enum wined3d_pool dst_pool, const struct wined3d_format *dst_format)
{
- if (src_pool == WINED3D_POOL_SYSTEM_MEM || dst_pool == WINED3D_POOL_SYSTEM_MEM)
+ BOOL decompress;
+
+ decompress = src_format && (src_format->flags[WINED3D_GL_RES_TYPE_TEX_2D] & WINED3DFMT_FLAG_COMPRESSED)
+ && !(dst_format->flags[WINED3D_GL_RES_TYPE_TEX_2D] & WINED3DFMT_FLAG_COMPRESSED);
+ if (!decompress && (src_pool == WINED3D_POOL_SYSTEM_MEM || dst_pool == WINED3D_POOL_SYSTEM_MEM))
{
TRACE("Source or destination is in system memory.\n");
return FALSE;
More information about the wine-cvs
mailing list