st/dri: use driver name for driconf section lookup
authorVadim Girlin <vadimgirlin@gmail.com>
Thu, 12 Apr 2012 00:28:24 +0000 (04:28 +0400)
committerVadim Girlin <vadimgirlin@gmail.com>
Thu, 23 Aug 2012 15:57:51 +0000 (19:57 +0400)
The name is taken from the driver_descriptor, so it will be the same as
expected by driconf utility.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/state_trackers/dri/common/dri_context.c

index e07e16833a7ac9850ff82c0c9195b512b6e125f0..9e59023d32580d07fa023d3c43a5adec654ecbc7 100644 (file)
@@ -34,6 +34,7 @@
 #include "dri_screen.h"
 #include "dri_drawable.h"
 #include "dri_context.h"
+#include "state_tracker/drm_driver.h"
 
 #include "pipe/p_context.h"
 #include "state_tracker/st_context.h"
@@ -104,7 +105,7 @@ dri_create_context(gl_api api, const struct gl_config * visual,
    ctx->sPriv = sPriv;
 
    driParseConfigFiles(&ctx->optionCache,
-                      &screen->optionCache, sPriv->myNum, "dri");
+                      &screen->optionCache, sPriv->myNum, driver_descriptor.name);
 
    dri_fill_st_visual(&attribs.visual, screen, visual);
    ctx->st = stapi->create_context(stapi, &screen->base, &attribs, &ctx_err,