Re: [Intel-gfx] [PATCH i-g-t v4 2/6] lib/igt_kms: Fix off-by-one bug on skip of missing pipe

2017-09-28 Thread Petri Latvala
On Wed, Sep 27, 2017 at 03:34:15PM -0300, Gabriel Krisman Bertazi wrote: > display->n_pipes is zero-indexed, so N returned in > igt_display_get_n_pipes is already not a valid pipe. This patch > prevents kms_ccs from going nuts when testing the first unxesting pipe.

[Intel-gfx] [PATCH i-g-t v4 2/6] lib/igt_kms: Fix off-by-one bug on skip of missing pipe

2017-09-27 Thread Gabriel Krisman Bertazi
display->n_pipes is zero-indexed, so N returned in igt_display_get_n_pipes is already not a valid pipe. This patch prevents kms_ccs from going nuts when testing the first unxesting pipe. Signed-off-by: Gabriel Krisman Bertazi Reviewed-by: Maarten Lankhorst