Re: [igt-dev] [PATCH i-g-t] tests/prime_self_import: Swap gtt mapping for cpu

Chris Wilson
2019-02-21T23:37:25Z

Quoting Antonio Argenziano (2019-02-21 22:38:59)
> The test uses gtt mapping to check two BOs have the same content, since
> it seems there is no contention on the BOs use cpu mapping to make it
> compatible with platforms that do not have a mappable aperture.
>
> v2:
> - Need to have an explicit set_domain. (Chris)
>
> Signed-off-by: Antonio Argenziano <antonio.argenziano@intel.com>

I don't think has any semantic impact, so no need to verify every write
to one of the cloned fd is visible in the other, just once is enough.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris