[Mesa-dev] [PATCH] gallium/st: Use driver name to access driconf

Maxim Levitsky maximlevitsky at gmail.com
Tue Aug 14 17:45:21 PDT 2012


This fixes fetching driconf options from the gallium drivers.

Patch written by, Carl-Philip Haensch
(http://lists.freedesktop.org/archives/mesa-dev/2011-May/007743.html)

Signed-off-by: Maxim Levitsky <maximlevitsky at gmail.com>
---
 .../state_trackers/dri/common/dri_context.c        |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/gallium/state_trackers/dri/common/dri_context.c b/src/gallium/state_trackers/dri/common/dri_context.c
index e07e168..dd23304 100644
--- a/src/gallium/state_trackers/dri/common/dri_context.c
+++ b/src/gallium/state_trackers/dri/common/dri_context.c
@@ -37,6 +37,7 @@
 
 #include "pipe/p_context.h"
 #include "state_tracker/st_context.h"
+#include "state_tracker/drm_driver.h"
 
 static void
 dri_pp_query(struct dri_context *ctx)
@@ -103,8 +104,8 @@ dri_create_context(gl_api api, const struct gl_config * visual,
    ctx->cPriv = cPriv;
    ctx->sPriv = sPriv;
 
-   driParseConfigFiles(&ctx->optionCache,
-		       &screen->optionCache, sPriv->myNum, "dri");
+   driParseConfigFiles(&ctx->optionCache, &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,
-- 
1.7.9.5



More information about the mesa-dev mailing list