[Intel-gfx] [PATCH i-g-t] tests/chamelium: Adapt to dynamic number of planes changes
Lyude Paul
lyude at redhat.com
Wed Feb 1 18:12:51 UTC 2017
Reviewed-by: Lyude <lyude at redhat.com>
If you need someone to push this let me know
On Wed, 2017-02-01 at 12:56 +0200, 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++) {
--
Cheers,
Lyude
More information about the Intel-gfx
mailing list