[Intel-gfx] [PATCH i-g-t] tests/chamelium: Adapt to dynamic number of planes changes

Robert Foss robert.foss at collabora.com
Wed Feb 1 13:24:20 UTC 2017


This looks good to me, feel free to add my r-b.

Rob.

On 2017-02-01 05:56 AM, Petri Latvala wrote:
> CC: Robert Foss <robert.foss at collabora.com>
> CC: Lyude <lyude at redhat.com>
> Signed-off-by: Petri Latvala <petri.latvala at intel.com>
> ---
>  tests/chamelium.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/tests/chamelium.c b/tests/chamelium.c
> index d914d5b..e03acc4 100644
> --- a/tests/chamelium.c
> +++ b/tests/chamelium.c
> @@ -310,7 +310,7 @@ enable_output(data_t *data,
>  	      struct igt_fb *fb)
>  {
>  	igt_display_t *display = output->display;
> -	igt_plane_t *primary = igt_output_get_plane(output, IGT_PLANE_PRIMARY);
> +	igt_plane_t *primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
>  	drmModeConnector *connector = chamelium_port_get_connector(
>  	    data->chamelium, port, false);
>
> @@ -341,7 +341,7 @@ disable_output(data_t *data,
>  	       igt_output_t *output)
>  {
>  	igt_display_t *display = output->display;
> -	igt_plane_t *primary = igt_output_get_plane(output, IGT_PLANE_PRIMARY);
> +	igt_plane_t *primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
>  	igt_assert(primary);
>
>  	/* Disable the display */
> @@ -364,7 +364,7 @@ test_display_crc_single(data_t *data, struct chamelium_port *port)
>
>  	output = prepare_output(data, &display, port);
>  	connector = chamelium_port_get_connector(data->chamelium, port, false);
> -	primary = igt_output_get_plane(output, IGT_PLANE_PRIMARY);
> +	primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
>  	igt_assert(primary);
>
>  	for (i = 0; i < connector->count_modes; i++) {
> @@ -418,7 +418,7 @@ test_display_crc_multiple(data_t *data, struct chamelium_port *port)
>
>  	output = prepare_output(data, &display, port);
>  	connector = chamelium_port_get_connector(data->chamelium, port, false);
> -	primary = igt_output_get_plane(output, IGT_PLANE_PRIMARY);
> +	primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
>  	igt_assert(primary);
>
>  	for (i = 0; i < connector->count_modes; i++) {
> @@ -477,7 +477,7 @@ test_display_frame_dump(data_t *data, struct chamelium_port *port)
>
>  	output = prepare_output(data, &display, port);
>  	connector = chamelium_port_get_connector(data->chamelium, port, false);
> -	primary = igt_output_get_plane(output, IGT_PLANE_PRIMARY);
> +	primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
>  	igt_assert(primary);
>
>  	for (i = 0; i < connector->count_modes; i++) {
>


More information about the Intel-gfx mailing list