Zebediah Figura : wined3d: Allow NOOVERWRITE maps to be accelerated on 32-bit architectures.

Alexandre Julliard julliard at winehq.org
Mon Feb 14 15:41:32 CST 2022


Module: wine
Branch: master
Commit: 30d670a7b9cd937eba6cb4d07ef4118dba57d3b4
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=30d670a7b9cd937eba6cb4d07ef4118dba57d3b4

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Fri Feb 11 19:42:04 2022 -0600

wined3d: Allow NOOVERWRITE maps to be accelerated on 32-bit architectures.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/buffer.c | 3 +--
 dlls/wined3d/cs.c     | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c
index 50e3e9fe2b4..902ab720396 100644
--- a/dlls/wined3d/buffer.c
+++ b/dlls/wined3d/buffer.c
@@ -1002,8 +1002,7 @@ static HRESULT buffer_resource_sub_resource_map(struct wined3d_resource *resourc
              * but it's safe because the client thread will wait for the
              * map to return, thus completely serializing this call with
              * other client code. */
-            if (wined3d_map_persistent())
-                buffer->resource.client.addr = addr;
+            buffer->resource.client.addr = addr;
 
             if (((DWORD_PTR)buffer->map_ptr) & (RESOURCE_ALIGNMENT - 1))
             {
diff --git a/dlls/wined3d/cs.c b/dlls/wined3d/cs.c
index ed8a41c778b..63d8628cea7 100644
--- a/dlls/wined3d/cs.c
+++ b/dlls/wined3d/cs.c
@@ -3088,8 +3088,7 @@ static bool wined3d_cs_map_upload_bo(struct wined3d_device_context *context, str
             if (!device->adapter->adapter_ops->adapter_alloc_bo(device, resource, sub_resource_idx, &addr))
                 return false;
 
-            if (wined3d_map_persistent())
-                client->addr = addr;
+            client->addr = addr;
         }
         else
         {




More information about the wine-cvs mailing list