From: Rob Clark Date: Sun, 5 Jul 2020 18:47:15 +0000 (-0700) Subject: freedreno/fdperf: prefer render node X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a7b1f916700a34c27fa8fc804b31428e553ec94;p=mesa.git 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 Part-of: --- 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");