• Matteo Bruni's avatar
    wined3d: Don't use separate GL contexts for different swapchains. · 72597b17
    Matteo Bruni authored
    This avoids triggering a Mesa slowpath introduced
    by Mesa commit e7f3a8d6959c74f63c877dd8776fe519d54f946f.
    
    Additionally, it helps applications using multiple swapchains and
    queries (e.g. the one in bug 43773) by not requiring extra context
    switches when polling queries. For the records, the actual issue from
    bug 43773 was probably fixed a long time ago, maybe already by
    7b62a970 or thereabouts.
    
    The downside of this change is that we'll now end up calling
    glFinish() when there are multiple threads using the same device when
    CSMT is disabled. That's a non-default setting and one that should
    only be used for troubleshooting purposes at this point, so it
    shouldn't be too bad of an issue. It might also make sense to just get
    rid of that glFinish() entirely, it's never going to be a complete
    fix.
    72597b17
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...