mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-05 06:00:36 +02:00
freedreno/fdperf: use drmOpen()
Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
parent
a37822f5f7
commit
dc791d3c68
2 changed files with 3 additions and 1 deletions
|
|
@ -40,6 +40,7 @@
|
|||
#include <curses.h>
|
||||
#include <libconfig.h>
|
||||
#include <inttypes.h>
|
||||
#include <xf86drm.h>
|
||||
|
||||
#include "drm/freedreno_drmif.h"
|
||||
#include "drm/freedreno_ringbuffer.h"
|
||||
|
|
@ -327,7 +328,7 @@ find_device(void)
|
|||
if (!dev.dtnode)
|
||||
errx(1, "could not find qcom,adreno-3xx node");
|
||||
|
||||
fd = open("/dev/dri/card0", O_RDWR);
|
||||
fd = drmOpen("msm", NULL);
|
||||
if (fd < 0)
|
||||
err(1, "could not open drm device");
|
||||
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ if dep_libconfig.found() and dep_ncurses.found()
|
|||
],
|
||||
dependencies : [
|
||||
dep_libconfig,
|
||||
dep_libdrm,
|
||||
dep_ncurses,
|
||||
idep_mesautil,
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue