commit b629099
Michael Forney
·
2014-02-13 21:09:37 +0000 UTC
parent 5c84ffa
drm: Use dumb buffers if WLD_DRM_DUMB is set
1 files changed,
+3,
-0
M
drm.c
M
drm.c
+3,
-0
1@@ -62,6 +62,9 @@ static const struct drm_driver * find_driver(int fd)
2 fclose(file);
3 device_id = strtoul(id, NULL, 0);
4
5+ if (getenv("WLD_DRM_DUMB"))
6+ return &dumb_drm_driver;
7+
8 for (index = 0; index < ARRAY_LENGTH(drivers); ++index)
9 {
10 DEBUG("Trying DRM driver `%s'\n", drivers[index]->name);