Mesa (master): freedreno/fdperf: prefer render node
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jul 6 15:45:50 UTC 2020
Module: Mesa
Branch: master
Commit: 0a7b1f916700a34c27fa8fc804b31428e553ec94
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0a7b1f916700a34c27fa8fc804b31428e553ec94
Author: Rob Clark <robdclark at chromium.org>
Date: Sun Jul 5 11:47:15 2020 -0700
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 at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5762>
---
src/freedreno/perfcntrs/fdperf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/freedreno/perfcntrs/fdperf.c b/src/freedreno/perfcntrs/fdperf.c
index 83efe2d2b53..d53828dc0b6 100644
--- a/src/freedreno/perfcntrs/fdperf.c
+++ b/src/freedreno/perfcntrs/fdperf.c
@@ -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");
More information about the mesa-commit
mailing list