[igt-dev] [PATCH i-g-t] prime_busy: Prebind the batch buffer

Matthew Auld matthew.auld at intel.com
Thu Aug 22 09:54:41 UTC 2019


On 21/08/2019 21:03, Chris Wilson wrote:
> The test assumes that the dmabuf for the batch buffer has no exclusive
> fence. This is only true for the batch as it executes on the GPU; prior
> to that we may be in the process of moving it into memory and the
> ppGTT which cause the batch to carry an exclusive fence. Keep the test
> simple and prebind the batch buffer so that when we poll the dmabuf fd,
> we only expect it to be the spinning batch.
> 
> Alternatively we could wait until we start writing values into scratch
> (i.e. igt_spin_busywait_until_started()). This seemed simpler.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Matthew Auld <matthew.auld at intel.com>
Acked-by: Matthew Auld <matthew.auld at intel.com>


More information about the igt-dev mailing list