summaryrefslogtreecommitdiff
path: root/lib/drmtest.h
diff options
context:
space:
mode:
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>2019-03-15 11:04:40 -0400
committerHarry Wentland <harry.wentland@amd.com>2019-03-27 11:17:54 -0400
commitf1894f3239f417bfade0bb2bcdefc5e43701c5ec (patch)
tree4cd1e99d3d29254c90afa93c3d2228fecd06f8bd /lib/drmtest.h
parent9df3e6234eba3c7a416b564a8cd8ebcc27c7fca9 (diff)
lib/drmtest: Add helpers to check and require amdgpu
These helpers will be used to address amdgpu specific quirks and features. They're implemented like the i915 and VC4 helpers. In order for the string comparison to pick up "amdgpu" the buffer size had to be expanded for __is_device. I've gone ahead and made it 12 bytes to cover everything that's there right now. v2: rebase Cc: Leo Li <sunpeng.li@amd.com> Cc: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Diffstat (limited to 'lib/drmtest.h')
-rw-r--r--lib/drmtest.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/drmtest.h b/lib/drmtest.h
index f4401ac9..71d197f3 100644
--- a/lib/drmtest.h
+++ b/lib/drmtest.h
@@ -78,9 +78,11 @@ int __drm_open_driver(int chipset);
void gem_quiescent_gpu(int fd);
+void igt_require_amdgpu(int fd);
void igt_require_intel(int fd);
void igt_require_vc4(int fd);
+bool is_amdgpu_device(int fd);
bool is_i915_device(int fd);
bool is_vc4_device(int fd);