[PATCH v2 4/4] wined3d: Allow NOOVERWRITE maps to be accelerated on 32-bit architectures.
Zebediah Figura
zfigura at codeweavers.com
Fri Feb 11 19:42:04 CST 2022
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
v2: No change.
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 280ec300b80..dede21d19b6 100644
--- a/dlls/wined3d/cs.c
+++ b/dlls/wined3d/cs.c
@@ -3090,8 +3090,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
{
--
2.34.1
More information about the wine-devel
mailing list