Skip to content
Snippets Groups Projects
Commit 2db95482 authored by Thomas Hellstrom's avatar Thomas Hellstrom
Browse files

loader_dri3/glx/egl: Optionally use a blit context for blitting operations


The code was relying on us always having a current context for client local
image blit operations. Otherwise the blit would be skipped. However,
glxSwapBuffers, for example, doesn't require a current context and that was a
common problem in the dri1 era. It seems the problem has resurfaced with dri3.

If we don't have a current context when we want to blit, try creating a private
dri context and maintain a context cache of a single context.

Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
parent 5198e48a
No related branches found
Tags mesa-18.0.0-rc3
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment