gbm: Search LIBGL_DRIVERS_PATH if GBM_DRIVERS_PATH is not set
authorDylan Baker <baker.dylan.c@gmail.com>
Tue, 22 Jul 2014 18:43:54 +0000 (11:43 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Fri, 25 Jul 2014 06:15:06 +0000 (23:15 -0700)
commitbf1247936a5c4efd7f7f081b9f9c2a2afba0310f
tree2e7de331db2a0da5304d30ec8c5de01d3859a148
parentcce58147eb1450a26c03756af37da52d180580c4
gbm: Search LIBGL_DRIVERS_PATH if GBM_DRIVERS_PATH is not set

The GBM_DRIVERS_PATH environment variable is not documented, and only
used to set the location of gbm drivers, while LIBGL_DRIVERS_PATH is
used for everything else, and is documented.

Generally this split leads to confusion as to why gbm doesn't work.

This patch will read LIBGL_DRIVERS_PATH as a fallback if
GBM_DRIVERS_PATH is not set.

The comments clearly indicate that using LIBGL_DRIVERS_PATH is
preferred over GBM_DRIVERS_PATH.

v2: - Use GBM_DRIVERS_PATH as a fallback
v3: [jordan.l.justen@intel.com] - Make LIBGL_DRIVERS_PATH the fallback

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/gbm/backends/dri/gbm_dri.c