[igt-dev] [PATCH i-g-t 4/5] lib: Add support for opening panfrost devices
Tomeu Vizoso
tomeu.vizoso at collabora.com
Wed Apr 24 15:25:10 UTC 2019
Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
---
lib/drmtest.c | 5 ++++-
lib/drmtest.h | 1 +
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/drmtest.c b/lib/drmtest.c
index 4a92fb5c3c41..095c0a2945d0 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -198,13 +198,14 @@ static const struct module {
const char *module;
void (*modprobe)(const char *name);
} modules[] = {
+ /* This list needs to be kept in alphabetical order */
{ DRIVER_AMDGPU, "amdgpu" },
{ DRIVER_INTEL, "i915", modprobe_i915 },
+ { DRIVER_PANFROST, "panfrost" },
{ DRIVER_V3D, "v3d" },
{ DRIVER_VC4, "vc4" },
{ DRIVER_VGEM, "vgem" },
{ DRIVER_VIRTIO, "virtio-gpu" },
- { DRIVER_VIRTIO, "virtio_gpu" },
{}
};
@@ -361,6 +362,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 71d197f3a429..6c4c3899cb31 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
--
2.20.1
More information about the igt-dev
mailing list