[PATCH 04/10] wined3d: Acquire references to cleared unordered-access views for command lists by inspecting CS packets.

Henri Verbeet hverbeet at codeweavers.com
Mon Jan 24 06:59:01 CST 2022


From: Jan Sikorski <jsikorski at codeweavers.com>

Signed-off-by: Jan Sikorski <jsikorski at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 dlls/wined3d/cs.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/dlls/wined3d/cs.c b/dlls/wined3d/cs.c
index 76db5b5184e..ae120b1790d 100644
--- a/dlls/wined3d/cs.c
+++ b/dlls/wined3d/cs.c
@@ -3607,6 +3607,15 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
             break;
         }
 
+        case WINED3D_CS_OP_CLEAR_UNORDERED_ACCESS_VIEW:
+        {
+            struct wined3d_cs_clear_unordered_access_view *op;
+
+            op = (struct wined3d_cs_clear_unordered_access_view *)packet->data;
+            wined3d_unordered_access_view_decref(op->view);
+            break;
+        }
+
         default:
             break;
     }
@@ -3732,6 +3741,15 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
             break;
         }
 
+        case WINED3D_CS_OP_CLEAR_UNORDERED_ACCESS_VIEW:
+        {
+            struct wined3d_cs_clear_unordered_access_view *op;
+
+            op = (struct wined3d_cs_clear_unordered_access_view *)packet->data;
+            wined3d_unordered_access_view_incref(op->view);
+            break;
+        }
+
         default:
             break;
     }
-- 
2.30.2




More information about the wine-devel mailing list