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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user