[Intel-gfx] [PATCH i-g-t 1/7] lib/igt_kms: Add support for up to 10 planes per pipe.

Daniel Vetter daniel at ffwll.ch
Thu Apr 21 14:51:18 UTC 2016


On Wed, Apr 20, 2016 at 10:59:43AM -0400, robert.foss at collabora.com wrote:
> From: Robert Foss <robert.foss at collabora.com>
> 
> The VC4 DRM currently uses 10 planes which is more than any
> other DRM, let's allocate space for the worst case scenario.
> 
> Signed-off-by: Robert Foss <robert.foss at collabora.com>
> ---
>  lib/igt_kms.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/igt_kms.h b/lib/igt_kms.h
> index 2c189ed..3edfc3d 100644
> --- a/lib/igt_kms.h
> +++ b/lib/igt_kms.h
> @@ -267,7 +267,7 @@ struct igt_pipe {
>  	igt_display_t *display;
>  	enum pipe pipe;
>  	bool enabled;
> -#define IGT_MAX_PLANES	4
> +#define IGT_MAX_PLANES	10

Reading more, don't we need to update stuff like kmstest_plane_name too?
-Daniel

>  	int n_planes;
>  	igt_plane_t planes[IGT_MAX_PLANES];
>  	uint64_t background; /* Background color MSB BGR 16bpc LSB */
> -- 
> 2.5.0
> 

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the Intel-gfx mailing list