[igt-dev] [PATCH i-g-t] tests/kms_psr2_sf: Remove bufmgr leftover
Petri Latvala
petri.latvala at intel.com
Wed May 5 08:11:11 UTC 2021
On Wed, May 05, 2021 at 08:54:54AM +0200, Zbigniew Kempczyński wrote:
> libdrm bufmgr is initialized in the test but used nowhere. Remove
> it to avoid confusion with real libdrm usage.
>
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> Cc: Petri Latvala <petri.latvala at intel.com>
> Ashutosh Dixit <ashutosh.dixit at intel.com>
Reviewed-by: Petri Latvala <petri.latvala at intel.com>
> ---
> tests/kms_psr2_sf.c | 7 -------
> 1 file changed, 7 deletions(-)
>
> diff --git a/tests/kms_psr2_sf.c b/tests/kms_psr2_sf.c
> index 8d3e13019..500a6f549 100644
> --- a/tests/kms_psr2_sf.c
> +++ b/tests/kms_psr2_sf.c
> @@ -29,7 +29,6 @@
> #include <stdbool.h>
> #include <stdio.h>
> #include <string.h>
> -#include "intel_bufmgr.h"
>
> IGT_TEST_DESCRIPTION("Tests to varify PSR2 selective fetch by sending multiple"
> " damaged areas");
> @@ -56,7 +55,6 @@ typedef struct {
> int drm_fd;
> int debugfs_fd;
> igt_display_t display;
> - drm_intel_bufmgr *bufmgr;
> drmModeModeInfo *mode;
> igt_output_t *output;
> struct igt_fb fb_primary, fb_overlay, fb_cursor;
> @@ -560,10 +558,6 @@ igt_main
> data.debugfs_fd, PSR_MODE_2),
> "Sink does not support PSR2\n");
>
> - data.bufmgr = drm_intel_bufmgr_gem_init(data.drm_fd, 4096);
> - igt_assert(data.bufmgr);
> - drm_intel_bufmgr_gem_enable_reuse(data.bufmgr);
> -
> display_init(&data);
>
> /* Test if PSR2 can be enabled */
> @@ -645,7 +639,6 @@ igt_main
>
> igt_fixture {
> close(data.debugfs_fd);
> - drm_intel_bufmgr_destroy(data.bufmgr);
> display_fini(&data);
> }
> }
> --
> 2.26.0
>
More information about the igt-dev
mailing list