Chris Wilson <[email protected]> writes:

> Since the cmdparser causes it to discard the batch with INVALID_CS, we
> are not being as thorough in our testing on gen9/bcs as we expect.
> Furthermore, snb just dies, so don't.

snb funny

Reviewed-by: Mika Kuoppala <[email protected]>

>
> Signed-off-by: Chris Wilson <[email protected]>
> Cc: Mika Kuoppala <[email protected]>
> ---
>  tests/i915/gem_eio.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/tests/i915/gem_eio.c b/tests/i915/gem_eio.c
> index aa4accc9d..d226d7428 100644
> --- a/tests/i915/gem_eio.c
> +++ b/tests/i915/gem_eio.c
> @@ -187,10 +187,13 @@ static igt_spin_t * __spin_poll(int fd, uint32_t ctx, 
> unsigned long flags)
>               .engine = flags,
>               .flags = (IGT_SPIN_FAST |
>                         IGT_SPIN_NO_PREEMPTION |
> -                       IGT_SPIN_INVALID_CS |
>                         IGT_SPIN_FENCE_OUT),
>       };
>  
> +     if (!gem_has_cmdparser(fd, opts.engine) &&
> +         intel_gen(intel_get_drm_devid(fd)) != 6)
> +             opts.flags |= IGT_SPIN_INVALID_CS;
> +
>       if (gem_can_store_dword(fd, opts.engine))
>               opts.flags |= IGT_SPIN_POLL_RUN;
>  
> -- 
> 2.25.0
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to