freedreno/computerator: Use a render node
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 2 Sep 2020 14:00:38 +0000 (16:00 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 2 Sep 2020 14:53:44 +0000 (14:53 +0000)
Fixes headless systems.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6562>

src/freedreno/computerator/main.c

index 5224bf0cf9aae0d092302bd2cafa60fccbbe612a..8e60c17279d769936cb7b7ca573dcd0b5c2ea0e4 100644 (file)
@@ -238,7 +238,7 @@ main(int argc, char **argv)
                }
        }
 
-       int fd = drmOpen("msm", NULL);
+       int fd = drmOpenWithType("msm", NULL, DRM_NODE_RENDER);
        if (fd < 0)
                err(1, "could not open drm device");