diff options
author | Vanshidhar Konda <vanshidhar.r.konda@intel.com> | 2021-09-03 14:24:41 -0700 |
---|---|---|
committer | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2021-09-07 14:37:35 -0700 |
commit | 831085fb82f5b34e17f398a0af8eaa8c509e0fad (patch) | |
tree | 76e6a22d50df368b99b49a6d62acbf63d3580dde /tests/i915/i915_fb_tiling.c | |
parent | 0f17f38c3e5e2139e59f1458c149bb7a93c88bbf (diff) |
i915/i915_fb_tiling: Check if device supports tiling
Skip this test if the platform does not support setting tiling for frame
buffer object.
Signed-off-by: Vanshidhar Konda <vanshidhar.r.kondai@ntel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'tests/i915/i915_fb_tiling.c')
-rw-r--r-- | tests/i915/i915_fb_tiling.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/i915/i915_fb_tiling.c b/tests/i915/i915_fb_tiling.c index 725ad3ad..cafa5233 100644 --- a/tests/i915/i915_fb_tiling.c +++ b/tests/i915/i915_fb_tiling.c @@ -32,6 +32,8 @@ igt_simple_main struct igt_fb fb; int ret; + igt_require(gem_available_fences(drm_fd) > 0); + igt_create_fb(drm_fd, 512, 512, DRM_FORMAT_XRGB8888, I915_FORMAT_MOD_X_TILED, &fb); |