commit b6290998575789efc98c4f522f1b643f9f047e8d
parent 5c84ffaff4f47bb729a8f1105cbe80c9183d4a75
Author: Michael Forney <mforney@mforney.org>
Date: Thu, 13 Feb 2014 13:09:37 -0800
drm: Use dumb buffers if WLD_DRM_DUMB is set
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/drm.c b/drm.c
@@ -62,6 +62,9 @@ static const struct drm_driver * find_driver(int fd)
fclose(file);
device_id = strtoul(id, NULL, 0);
+ if (getenv("WLD_DRM_DUMB"))
+ return &dumb_drm_driver;
+
for (index = 0; index < ARRAY_LENGTH(drivers); ++index)
{
DEBUG("Trying DRM driver `%s'\n", drivers[index]->name);