[igt-dev] [PATCH i-g-t 1/9] tests/prime_vgem: Skip fence and gtt specific tests
Janusz Krzysztofik
janusz.krzysztofik at linux.intel.com
Mon Feb 3 09:28:13 UTC 2020
On Friday, January 31, 2020 6:31:01 PM CET Ramalingam C wrote:
> In the absence of the mappable aperture, skip GTT and
> fence specific tests.
>
> v2:
> requirement check is moved to subtest start [Zbigniew]
>
> Signed-off-by: Ramalingam C <ramalingam.c at intel.com>
> ---
> tests/prime_vgem.c | 12 +++++++++---
> 1 file changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/tests/prime_vgem.c b/tests/prime_vgem.c
> index 3bdb23007d56..c483cbe722ea 100644
> --- a/tests/prime_vgem.c
> +++ b/tests/prime_vgem.c
> @@ -846,14 +846,18 @@ igt_main
> igt_subtest("basic-write")
> test_write(vgem, i915);
>
> - igt_subtest("basic-gtt")
> + igt_subtest("basic-gtt") {
> + gem_require_mappable_ggtt(i915);
> test_gtt(vgem, i915);
> + }
>
> igt_subtest("shrink")
> test_shrink(vgem, i915);
>
> - igt_subtest("coherency-gtt")
> + igt_subtest("coherency-gtt") {
> + gem_require_mappable_ggtt(i915);
> test_gtt_interleaved(vgem, i915);
> + }
>
> for (e = intel_execution_engines; e->name; e++) {
> igt_subtest_f("%ssync-%s",
> @@ -902,8 +906,10 @@ igt_main
>
> igt_subtest("basic-fence-read")
> test_fence_read(i915, vgem);
> - igt_subtest("basic-fence-mmap")
> + igt_subtest("basic-fence-mmap") {
> + gem_require_mappable_ggtt(i915);
> test_fence_mmap(i915, vgem);
> + }
>
> for (e = intel_execution_engines; e->name; e++) {
> igt_subtest_f("%sfence-wait-%s",
>
As discussed before, we need blitter based replacements for completeness, but
those skips are needed anyway, better than failures we currently get, as long
as we decided to not provide support for non-GTT mapping of dma-buf objects.
Reviewed-by: Janusz Krzysztofik <janusz.krzysztofik at linux.intel.com>
Thanks,
Janusz
More information about the igt-dev
mailing list