[PATCH] gallium/st: Use driver name to access driconf. This fixes f=

Carl-Philip Haensch Carl-Philip.Haensch at mailbox.tu-dresden.de
Fri May 20 07:12:41 PDT 2011


etching driconf options from the gallium drivers.

---
 .../state_trackers/dri/common/dri_context.c        |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/gallium/state_trackers/dri/common/dri_context.c b/src/galli=
um/state_trackers/dri/common/dri_context.c
index e23c1bc..d399534 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 @@
=20
 #include "pipe/p_context.h"
 #include "state_tracker/st_context.h"
+#include "state_tracker/drm_driver.h"
=20
 static void
 dri_init_extensions(struct dri_context *ctx)
@@ -85,8 +86,8 @@ dri_create_context(gl_api api, const struct gl_config * vi=
sual,
    ctx->sPriv =3D sPriv;
    ctx->lock =3D screen->drmLock;
=20
-   driParseConfigFiles(&ctx->optionCache,
-=09=09       &screen->optionCache, sPriv->myNum, "dri");
+   driParseConfigFiles(&ctx->optionCache, &screen->optionCache,=20
+                        sPriv->myNum, driver_descriptor.name);
=20
    dri_fill_st_visual(&attribs.visual, screen, visual);
    ctx->st =3D stapi->create_context(stapi, &screen->base, &attribs, st_sha=
re);
--=20
1.7.1


--=_2nodao3qy62i--


More information about the mesa-dev mailing list