[igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: remove fb after test
Das, Nirmoy
nirmoy.das at linux.intel.com
Fri Dec 30 18:55:44 UTC 2022
Hi Andrzej,
While going through the file I found more such missing igt_remove_fb()
for example:
test_scaler_with_multi_pipe_plane(). Please include igt_remove_fb() for
remaining funs as well.
Nirmoy
On 12/29/2022 4:58 PM, Andrzej Hajda wrote:
> igt_create_color_fb should be accompanied with igt_remove_fb.
>
> Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/7331
> Signed-off-by: Andrzej Hajda <andrzej.hajda at intel.com>
> ---
> tests/kms_plane_scaling.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
> index 4c621cce842..1a8f1581f3e 100644
> --- a/tests/kms_plane_scaling.c
> +++ b/tests/kms_plane_scaling.c
> @@ -367,6 +367,8 @@ static void check_scaling_pipe_plane_rot(data_t *d, igt_plane_t *plane,
> igt_plane_set_fb(plane, NULL);
> igt_plane_set_position(plane, 0, 0);
>
> + igt_remove_fb(d->drm_fd, &d->fb[0]);
> +
> igt_skip_on_f(commit_ret == -ERANGE || commit_ret == -EINVAL,
> "Unsupported scaling factor with fb size %dx%d\n",
> w, h);
More information about the igt-dev
mailing list