[Intel-gfx] [PATCH i-g-t v2 25/33] tests/kms_rmfb: Add support for dynamic number of planes

Mika Kahola mika.kahola at intel.com
Thu Jan 26 11:04:03 UTC 2017


Reviewed-by: Mika Kahola <mika.kahola at intel.com>

On Tue, 2017-01-24 at 18:33 -0500, Robert Foss wrote:
> Add changes reflecting the new support for dynamic number of planes
> per pipe.
> 
> Signed-off-by: Robert Foss <robert.foss at collabora.com>
> ---
>  tests/kms_rmfb.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/kms_rmfb.c b/tests/kms_rmfb.c
> index 17a3065a..5753d74c 100644
> --- a/tests/kms_rmfb.c
> +++ b/tests/kms_rmfb.c
> @@ -83,7 +83,7 @@ test_rmfb(struct rmfb_data *data, igt_output_t
> *output, enum pipe pipe, bool reo
>  	 * later on.
>  	 */
>  	for_each_plane_on_pipe(&data->display, pipe, plane) {
> -		if (plane->is_cursor) {
> +		if (plane->type == DRM_PLANE_TYPE_CURSOR) {
>  			igt_plane_set_fb(plane, &argb_fb);
>  			igt_fb_set_size(&argb_fb, plane,
> cursor_width, cursor_height);
>  			igt_plane_set_size(plane, cursor_width,
> cursor_height);
-- 
Mika Kahola - Intel OTC



More information about the Intel-gfx mailing list