[igt-dev] [PATCH i-g-t] tests/i915/gem_concurrent_all: Skip GTT mapping when aperture not available
Antonio Argenziano
antonio.argenziano at intel.com
Thu Jan 30 21:17:48 UTC 2020
The test iterates over several mappings and BOs creation options, when
GTT mapping is not available skip those options.
Signed-off-by: Antonio Argenziano <antonio.argenziano at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
---
tests/i915/gem_concurrent_all.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tests/i915/gem_concurrent_all.c b/tests/i915/gem_concurrent_all.c
index f1be4a85..22f429e8 100644
--- a/tests/i915/gem_concurrent_all.c
+++ b/tests/i915/gem_concurrent_all.c
@@ -440,6 +440,11 @@ static void create_vgem_require(const struct create *create, unsigned count)
create_dmabuf_require(create, count);
}
+static void create_gtt_require(const struct create *create, unsigned count)
+{
+ gem_require_mappable_ggtt(fd);
+}
+
static drm_intel_bo *
vgem_create_bo(const struct buffers *b)
{
@@ -1406,6 +1411,7 @@ static void cpu_require(void)
static void gtt_require(void)
{
+ gem_require_mappable_ggtt(fd);
}
static void bcs_require(void)
@@ -1722,6 +1728,7 @@ igt_main
{
.name = "gtt",
.create_bo = gtt_create_bo,
+ .require = create_gtt_require,
.set_bo = gtt_set_bo,
.cmp_bo = gtt_cmp_bo,
.release_bo = nop_release_bo,
@@ -1729,6 +1736,7 @@ igt_main
{
.name = "gttX",
.create_bo = gttX_create_bo,
+ .require = create_gtt_require,
.set_bo = gtt_set_bo,
.cmp_bo = gtt_cmp_bo,
.release_bo = nop_release_bo,
--
2.21.0
More information about the igt-dev
mailing list