Mesa (master): st/dri: use driver name for driconf section lookup
Vadim Girlin
vadimg at kemper.freedesktop.org
Thu Aug 23 16:18:56 UTC 2012
Module: Mesa
Branch: master
Commit: e7c177ec9e37d0c406c3b0ef8f228159d7ee5d69
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e7c177ec9e37d0c406c3b0ef8f228159d7ee5d69
Author: Vadim Girlin <vadimgirlin at gmail.com>
Date: Thu Apr 12 04:28:24 2012 +0400
st/dri: use driver name for driconf section lookup
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 at gmail.com>
---
.../state_trackers/dri/common/dri_context.c | 3 ++-
1 files changed, 2 insertions(+), 1 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..9e59023 100644
--- a/src/gallium/state_trackers/dri/common/dri_context.c
+++ b/src/gallium/state_trackers/dri/common/dri_context.c
@@ -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,
More information about the mesa-commit
mailing list