wined3d: Set resource->client.addr in buffer_resource_sub_resource_map() only if...
commit28285f1e76980412cfb40cfa81174ca441e9b5c2
authorZebediah Figura <zfigura@codeweavers.com>
Thu, 10 Feb 2022 02:27:35 +0000 (9 20:27 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 10 Feb 2022 17:09:30 +0000 (10 18:09 +0100)
tree93ac8853092319f80f793585a990436dbcc08609
parent06e178e87f1bd40400160741e7a1d003e461c6ad
wined3d: Set resource->client.addr in buffer_resource_sub_resource_map() only if persistently mapping.

Be consistent with wined3d_cs_map_upload_bo(). This may change in the future,
but for now we depend on this logic in the Vulkan backend.

This fixes test_dynamic_map_synchronization() on 32-bit architectures with the
Vulkan backend, which is currently broken because we try to perform accelerated
NOOVERWRITE maps while unmapping the same BOs.

Fixes: d8e8ab21c0f9f00d295c035534637115a5d70f9f
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/wined3d/buffer.c