[igt-dev] [CI 02/16] fb: Only set the GEM domain on intel platforms
Arkadiusz Hiler
arkadiusz.hiler at intel.com
Mon Oct 8 14:04:19 UTC 2018
From: Maxime Ripard <maxime.ripard at bootlin.com>
The gem_set_domain call uses an i915 specific ioctl that will fail on
anything else. Let's move that call under a check for whether or not we're
running on an intel platform.
Signed-off-by: Maxime Ripard <maxime.ripard at bootlin.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
---
lib/igt_fb.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index f1332169..aaa90bf7 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -1356,8 +1356,9 @@ static void *map_bo(int fd, struct igt_fb *fb)
{
void *ptr;
- gem_set_domain(fd, fb->gem_handle,
- I915_GEM_DOMAIN_GTT, I915_GEM_DOMAIN_GTT);
+ if (is_i915_device(fd))
+ gem_set_domain(fd, fb->gem_handle,
+ I915_GEM_DOMAIN_GTT, I915_GEM_DOMAIN_GTT);
if (fb->is_dumb)
ptr = kmstest_dumb_map_buffer(fd, fb->gem_handle, fb->size,
--
2.17.1
More information about the igt-dev
mailing list