Re: [Intel-gfx] [PATCH i-g-t v3] tests/kms_flip: Adjust tolerance when counting frames

2016-05-13 Thread Gabriel Feceoru
On 13.05.2016 15:00, Chris Wilson wrote: On Fri, May 13, 2016 at 02:45:09PM +0300, Gabriel Feceoru wrote: basic-flip-vs-wf_vblank subtest sometimes fails asserting counted frames to be aproximately equal with the estimated number. This is a false negative, one of the reasons being the

Re: [Intel-gfx] [PATCH i-g-t v3] tests/kms_flip: Adjust tolerance when counting frames

2016-05-13 Thread Chris Wilson
On Fri, May 13, 2016 at 01:00:33PM +0100, Chris Wilson wrote: > On Fri, May 13, 2016 at 02:45:09PM +0300, Gabriel Feceoru wrote: > > basic-flip-vs-wf_vblank subtest sometimes fails asserting counted frames to > > be aproximately equal with the estimated number. > > > > This is a false negative,

Re: [Intel-gfx] [PATCH i-g-t v3] tests/kms_flip: Adjust tolerance when counting frames

2016-05-13 Thread Chris Wilson
On Fri, May 13, 2016 at 02:45:09PM +0300, Gabriel Feceoru wrote: > basic-flip-vs-wf_vblank subtest sometimes fails asserting counted frames to > be aproximately equal with the estimated number. > > This is a false negative, one of the reasons being the precision lost when > truncating a

[Intel-gfx] [PATCH i-g-t v3] tests/kms_flip: Adjust tolerance when counting frames

2016-05-13 Thread Gabriel Feceoru
basic-flip-vs-wf_vblank subtest sometimes fails asserting counted frames to be aproximately equal with the estimated number. This is a false negative, one of the reasons being the precision lost when truncating a fractional number. Fixed this by using floating point arithmetic. Cc: Jani Nikula