• Adam Jackson's avatar
    glx: Use vnd layer for dispatch (v4) · d8ec33fe
    Adam Jackson authored
    The big change here is MakeCurrent and context tag tracking. We now
    delegate context tags entirely to the vnd layer, and simply store a
    pointer to the context state as the tag data. If a context is deleted
    while it's current, we allocate a fake ID for the context and move the
    context state there, so the tag data still points to a real context. As
    a result we can stop trying so hard to detach the client from contexts
    at disconnect time and just let resource destruction handle it.
    
    Since vnd handles all the MakeCurrent protocol now, our request handlers
    for it can just be return BadImplementation. We also remove a bunch of
    LEGAL_NEW_RESOURCE, because now by the time we're called vnd has already
    allocated its tracking resource on that XID.
    
    v2: Update to match v2 of the vnd import, and remove more redundant work
    like request length checks.
    
    v3: Add/remove the XID map from the vendor private thunk, not the
    backend. (Kyle Brenneman)
    
    v4: Fix deletion of ghost contexts (Kyle Brenneman)
    Signed-off-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
    d8ec33fe
Name
Last commit
Last update
Xext Loading commit data...
Xi Loading commit data...
composite Loading commit data...
config Loading commit data...
damageext Loading commit data...
dbe Loading commit data...
dix Loading commit data...
doc Loading commit data...
dri3 Loading commit data...
exa Loading commit data...
fb Loading commit data...
glamor Loading commit data...
glx Loading commit data...
hw Loading commit data...
include Loading commit data...
m4 Loading commit data...
man Loading commit data...
mi Loading commit data...
miext Loading commit data...
os Loading commit data...
present Loading commit data...
pseudoramiX Loading commit data...
randr Loading commit data...
record Loading commit data...
render Loading commit data...
test Loading commit data...
xfixes Loading commit data...
xkb Loading commit data...
.appveyor.yml Loading commit data...
.dir-locals.el Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
devbook.am Loading commit data...
docbook.am Loading commit data...
fix-miregion Loading commit data...
fix-miregion-private Loading commit data...
fix-patch-whitespace Loading commit data...
fix-region Loading commit data...
manpages.am Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
xorg-server.m4 Loading commit data...
xorg-server.pc.in Loading commit data...
xserver.ent.in Loading commit data...