diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-07-12 11:10:57 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-13 12:01:31 +0000 |
commit | 8fb8ce1b7dc73eecf5409aba5c924697456be9a8 (patch) | |
tree | 96a08b2e499d800db724851396d61551a3cce0f9 | |
parent | d883903b5909b94bd366cbb756de8fae09e2341a (diff) |
igt/kms_flip_tiling: Check GEM availability before use
We use the GPU to convert between tiling formats, indirectly via the
call to igt_create_pattern_fb. So before we try and execute commands on
the GPU, we should check that the GPU is available.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | tests/kms_flip_tiling.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/kms_flip_tiling.c b/tests/kms_flip_tiling.c index 7a736fba..8cfc378d 100644 --- a/tests/kms_flip_tiling.c +++ b/tests/kms_flip_tiling.c @@ -156,6 +156,7 @@ igt_main igt_fixture { data.drm_fd = drm_open_driver_master(DRIVER_INTEL); data.gen = intel_gen(intel_get_drm_devid(data.drm_fd)); + igt_require_gem(data.drm_fd); data.testformat = DRM_FORMAT_XRGB8888; |