[PATCH 2/7] wined3d: Allow up to 128 of persistently mapped memory on 32-bit architectures.

Henri Verbeet hverbeet at gmail.com
Fri Feb 11 08:56:32 CST 2022


On Fri, 11 Feb 2022 at 02:03, Zebediah Figura <zfigura at codeweavers.com> wrote:
>  dlls/wined3d/adapter_vk.c      | 24 +++++++++----
>  dlls/wined3d/context_gl.c      | 61 ++++++++++++++++++++--------------
>  dlls/wined3d/context_vk.c      | 20 ++++++++---
>  dlls/wined3d/directx.c         |  9 +++++
>  dlls/wined3d/wined3d_private.h |  9 +++++
>  5 files changed, 87 insertions(+), 36 deletions(-)
>
The subject line is probably missing a "MiB".

> @@ -2916,6 +2913,9 @@ map:
>          bo->b.map_ptr = GL_EXTCALL(glMapBuffer(bo->binding, wined3d_resource_gl_legacy_map_flags(flags)));
>      }
>
> +    if (bo->b.map_ptr)
> +        adapter_adjust_mapped_memory(device_gl->d.adapter, -bo->size);
> +
Shouldn't we be increasing the mapped memory count here?



More information about the wine-devel mailing list