summaryrefslogtreecommitdiffstats
path: root/src/gbm/backends/dri/gbm_dri.c
diff options
context:
space:
mode:
authorChristian Gmeiner <[email protected]>2016-11-03 15:25:21 +0100
committerEmil Velikov <[email protected]>2016-11-15 15:56:52 +0000
commit1a21d21580965eff751414d140b3c176eeee2eb3 (patch)
treeb30320deb28215f2db0e319aa706496b6ce484c7 /src/gbm/backends/dri/gbm_dri.c
parent0890aa6f7fdbe33721b8ef2039608390c5aa886e (diff)
dri: make use of dri_get_extensions_name(..) helper
Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gbm/backends/dri/gbm_dri.c')
-rw-r--r--src/gbm/backends/dri/gbm_dri.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index 5cd7318d57b..4cb7f2775d9 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -363,8 +363,9 @@ dri_open_driver(struct gbm_dri_device *dri)
return NULL;
}
- if (asprintf(&get_extensions_name, "%s_%s",
- __DRI_DRIVER_GET_EXTENSIONS, dri->base.driver_name) != -1) {
+ get_extensions_name = dri_get_extensions_name(dri->base.driver_name);
+
+ if (get_extensions_name) {
const __DRIextension **(*get_extensions)(void);
get_extensions = dlsym(dri->driver, get_extensions_name);