[PATCH 1/7] wined3d: Remove depth/stencil format flags from typeless formats.

Józef Kucia jkucia at codeweavers.com
Thu Dec 15 06:45:05 CST 2016


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>
---

Required for the next two patches in the series.

---
 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))
         {
-- 
2.7.3




More information about the wine-patches mailing list