freedreno/fdperf: prefer render node

Avoid inadvertantly becoming master if fdperf happens to be the first
thing to open the device.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5762>
This commit is contained in:
Rob Clark
2020-07-05 11:47:15 -07:00
committed by Marge Bot
parent 385d036f58
commit 0a7b1f9167
+1 -1
View File
@@ -295,7 +295,7 @@ find_device(void)
if (!dev.dtnode)
errx(1, "could not find qcom,adreno-3xx node");
fd = drmOpen("msm", NULL);
fd = drmOpenWithType("msm", NULL, DRM_NODE_RENDER);
if (fd < 0)
err(1, "could not open drm device");