• Jan Sikorski's avatar
    wined3d: Avoid waiting for a command buffer to finish executing to read off its queries. · 9a799898
    Jan Sikorski authored
    Some games wait for query results on the frame executing the query,
    expecting that enough time have passed for it to be available. By
    requiring that the entire command buffer is done, we risk stalling the
    whole frame if it wasn't flushed along the way. This patch drops this
    requirement.
    
    Mainly, we need to ensure that we don't call vkGetQueryPoolResults()
    before the reset command is executed, and accidentally retrieve result
    from previous usage. Using host query reset doesn't quite solve the
    problem, as it might get called too early, if the application decides to
    reuse a query without waiting for results. Besides, we want to support
    devices where host query reset is not available.
    
    To make it work, when a Vulkan query is no longer needed, we queue it
    for resetting at command buffer submission time, and only mark it free
    for reuse after this command buffer is finished executing.
    Signed-off-by: 's avatarJan Sikorski <jsikorski@codeweavers.com>
    Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    9a799898
Name
Last commit
Last update
..
Makefile.in Loading commit data...
adapter_gl.c Loading commit data...
adapter_vk.c Loading commit data...
arb_program_shader.c Loading commit data...
ati_fragment_shader.c Loading commit data...
buffer.c Loading commit data...
context.c Loading commit data...
context_gl.c Loading commit data...
context_vk.c Loading commit data...
cs.c Loading commit data...
device.c Loading commit data...
directx.c Loading commit data...
gl_compat.c Loading commit data...
glsl_shader.c Loading commit data...
nvidia_texture_shader.c Loading commit data...
palette.c Loading commit data...
query.c Loading commit data...
resource.c Loading commit data...
sampler.c Loading commit data...
shader.c Loading commit data...
shader_sm1.c Loading commit data...
shader_sm4.c Loading commit data...
shader_spirv.c Loading commit data...
state.c Loading commit data...
stateblock.c Loading commit data...
surface.c Loading commit data...
swapchain.c Loading commit data...
texture.c Loading commit data...
utils.c Loading commit data...
version.rc Loading commit data...
vertexdeclaration.c Loading commit data...
view.c Loading commit data...
wined3d.spec Loading commit data...
wined3d_gl.h Loading commit data...
wined3d_main.c Loading commit data...
wined3d_private.h Loading commit data...
wined3d_shaders.h Loading commit data...
wined3d_vk.h Loading commit data...