Module: wine
Branch: master
Commit: a7c320d184fb9d48239caf0f5529b6992477b82b
URL: https://source.winehq.org/git/wine.git/?a=commit;h=a7c320d184fb9d48239caf0f…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Mon Nov 30 18:29:25 2020 +0330
wined3d: Use command buffer IDs for synchronisation in wined3d_buffer_gl_sync_apple().
Analogous to the Vulkan adapter. This is slightly awkward in OpenGL
because it doesn't have explicit command buffers like Vulkan, but
calling wined3d_context_gl_submit_command_fence() on swapchain present
works well enough in practice. The main advantage of this approach is that it
avoids using a separate fence for each usage of each bo.
Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/wined3d/adapter_gl.c | 2 +
dlls/wined3d/buffer.c | 61 +++----------------
dlls/wined3d/context.c | 4 --
dlls/wined3d/context_gl.c | 130 +++++++++++++++++++++++++++++++++--------
dlls/wined3d/query.c | 2 +-
dlls/wined3d/swapchain.c | 1 +
dlls/wined3d/wined3d_private.h | 34 +++++++++--
7 files changed, 146 insertions(+), 88 deletions(-)
Diff: https://source.winehq.org/git/wine.git/?a=commitdiff;h=a7c320d184fb9d48239c…