• Adam Jackson's avatar
    glx: Implement GLX_EXT_libglvnd (v2) · b08526ee
    Adam Jackson authored
    For the dri2 backend, we depend on xfree86 already, so we can walk the
    options for the screen looking for a vendor string from xorg.conf.  For
    the swrast backend we don't have that luxury, so just say mesa.  This
    extension isn't really meaningful on Windows or OSX yet (since libglvnd
    isn't really functional there yet), so on those platforms we don't say
    anything and return BadValue for the token from QueryServerString.
    
    v2: Use xnf* allocators when parsing options (Eric and Emil)
    Reviewed-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
    Reviewed-by: Emil Velikov's avatarEmil Velikov <emil.velikov@collabora.com>
    Signed-off-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
    b08526ee
glxcmds.c 75.6 KB