[PATCH 3/3] wined3d: Don't initialize system memory for buffers.

Zebediah Figura zfigura at codeweavers.com
Mon Jan 24 20:20:39 CST 2022


Unless it needs to be pinned.

This fixes test_map_synchronisation() on 64-bit machines, broken after
194b47b4fd92dda8ebf24e88ca7a14fc926c84ab.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 dlls/wined3d/buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c
index e1c1f7aa5fc..e75748a4a0a 100644
--- a/dlls/wined3d/buffer.c
+++ b/dlls/wined3d/buffer.c
@@ -1233,7 +1233,7 @@ static HRESULT wined3d_buffer_init(struct wined3d_buffer *buffer, struct wined3d
     }
     buffer->buffer_ops = buffer_ops;
     buffer->structure_byte_stride = desc->structure_byte_stride;
-    buffer->locations = data ? WINED3D_LOCATION_DISCARDED : WINED3D_LOCATION_SYSMEM;
+    buffer->locations = WINED3D_LOCATION_DISCARDED;
 
     TRACE("buffer %p, size %#x, usage %#x, memory @ %p.\n",
             buffer, buffer->resource.size, buffer->resource.usage, buffer->resource.heap_memory);
-- 
2.34.1




More information about the wine-devel mailing list