summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2019-04-24 15:41:24 +0200
committerTomeu Vizoso <tomeu.vizoso@collabora.com>2019-05-13 06:30:50 +0200
commit910b83b7951212c1a22a37ade91844a0530d7ab4 (patch)
treeb81c8f92e7e91ce4c5dd117ad55ab0c2f5013e0e
parentfcab5003f8f2d66b50c520e2a6d37289c6c79b9d (diff)
lib: Add support for opening panfrost devices
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Acked-by: Petri Latvala <petri.latvala@intel.com>
-rw-r--r--lib/drmtest.c3
-rw-r--r--lib/drmtest.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c
index ce3804f9..25f20353 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -206,6 +206,7 @@ static const struct module {
} modules[] = {
{ DRIVER_AMDGPU, "amdgpu" },
{ DRIVER_INTEL, "i915", modprobe_i915 },
+ { DRIVER_PANFROST, "panfrost" },
{ DRIVER_V3D, "v3d" },
{ DRIVER_VC4, "vc4" },
{ DRIVER_VGEM, "vgem" },
@@ -366,6 +367,8 @@ static const char *chipset_to_str(int chipset)
return "virtio";
case DRIVER_AMDGPU:
return "amdgpu";
+ case DRIVER_PANFROST:
+ return "panfrost";
case DRIVER_ANY:
return "any";
default:
diff --git a/lib/drmtest.h b/lib/drmtest.h
index 71d197f3..6c4c3899 100644
--- a/lib/drmtest.h
+++ b/lib/drmtest.h
@@ -44,6 +44,7 @@
#define DRIVER_VIRTIO (1 << 3)
#define DRIVER_AMDGPU (1 << 4)
#define DRIVER_V3D (1 << 5)
+#define DRIVER_PANFROST (1 << 6)
/*
* Exclude DRVER_VGEM from DRIVER_ANY since if you run on a system
* with vgem as well as a supported driver, you can end up with a