=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Remove depth/ stencil format flags from typeless formats.

Alexandre Julliard julliard at winehq.org
Fri Dec 16 14:01:14 CST 2016


Module: wine
Branch: master
Commit: f752c09791170f33acfa3929a716f1c6ec7f0d38
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f752c09791170f33acfa3929a716f1c6ec7f0d38

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Thu Dec 15 13:45:05 2016 +0100

wined3d: Remove depth/stencil format flags from typeless formats.

We have separate formats for depth/stencil typeless formats. This fixes
blits for R32_TYPELESS and R16_TYPELESS formats.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/utils.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 623a462..0c79f90 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -3443,7 +3443,10 @@ static BOOL init_typeless_formats(struct wined3d_gl_info *gl_info)
         typeless_ds_format->id = typeless_depth_stencil_formats[i].typeless_id;
         copy_format(typeless_ds_format, ds_format);
         for (j = 0; j < ARRAY_SIZE(typeless_ds_format->flags); ++j)
+        {
             typeless_ds_format->flags[j] = typeless_format->flags[j];
+            typeless_format->flags[j] &= ~(WINED3DFMT_FLAG_DEPTH | WINED3DFMT_FLAG_STENCIL);
+        }
 
         if ((format_id = typeless_depth_stencil_formats[i].depth_view_id))
         {




More information about the wine-cvs mailing list