driconfig: Add support for device specific config

Add support for driconf overrides on a per-device level, for cases
where we don't want to override behavior for all devices supported
by a particular driver.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12135>
This commit is contained in:
Rob Clark
2021-07-28 18:17:42 -07:00
parent b080aa9466
commit 6edf0d8e90
22 changed files with 37 additions and 22 deletions
+2 -2
View File
@@ -143,7 +143,7 @@ TEST_F(xmlconfig_test, copy_cache)
* user's homedir/environment that would override us.
*/
driParseConfigFiles(&cache, &options,
0, "driver", "drm",
0, "driver", "drm", NULL,
NULL, 0,
NULL, 0);
@@ -184,7 +184,7 @@ xmlconfig_test::drirc_init(const char *driver, const char *drm,
* based on the setting of $HOME by meson.build.
*/
driParseConfigFiles(&cache, &options,
0, driver, drm,
0, driver, drm, NULL,
app, appver,
engine, enginever);