Re: [Intel-gfx] [PATCH igt] igt/kms_flip: Do igt_require_gem() just once

2018-01-04 Thread Arkadiusz Hiler
On Wed, Jan 03, 2018 at 05:57:28PM +, Chris Wilson wrote: > Since igt_spin_batch_new() will do a stalling GEM check, it is not > advisable to use it within loops. Perform the igt_require_gem() upfront > and then use __igt_spin_batch_new() inside the test loop. > > Signed-off-by: Chris Wilson

[Intel-gfx] [PATCH igt] igt/kms_flip: Do igt_require_gem() just once

2018-01-03 Thread Chris Wilson
Since igt_spin_batch_new() will do a stalling GEM check, it is not advisable to use it within loops. Perform the igt_require_gem() upfront and then use __igt_spin_batch_new() inside the test loop. Signed-off-by: Chris Wilson --- tests/kms_flip.c | 11 +++ 1 file changed, 7 insertions(+),