glx: Move DRI extensions pointer loading to driOpenDriver().
authorEric Anholt <eric@anholt.net>
Thu, 15 Nov 2018 22:22:16 +0000 (14:22 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 16 Nov 2018 23:38:18 +0000 (15:38 -0800)
commitc2b515379bfc669660133bb2d25e50bb04ac0d66
treee1af6406e849b58eda76de3ef68fc25626de2a21
parent7076e9f116c2060a7f28680178d96c188c7177df
glx: Move DRI extensions pointer loading to driOpenDriver().

The only thing you do with a dri driver handle is get the extensions
pointer, so just fold it in to simplify the callers.

v2: Add the declaration of driGetDriverExtensions() that got lost in a
    rebase.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> (v1)
Reviewed-by: Emil Velikov <emil.velikov@collabora.com> (v1)
src/glx/dri2_glx.c
src/glx/dri3_glx.c
src/glx/dri_common.c
src/glx/dri_common.h
src/glx/dri_glx.c
src/glx/drisw_glx.c