[igt-dev] [PATCH][V2] tests/kms_bw: Test outputs with fb of the same resolutions

Pillai, Aurabindo Aurabindo.Pillai at amd.com
Wed Dec 14 19:05:05 UTC 2022


[AMD Official Use Only - General]


Reviewed-by: Aurabindo Pillai <aurabindo.pillai at amd.com>

--

Regards,
Jay
________________________________
From: Hung, Alex <Alex.Hung at amd.com>
Sent: Wednesday, December 14, 2022 1:19 PM
To: igt-dev at lists.freedesktop.org <igt-dev at lists.freedesktop.org>
Cc: Siqueira, Rodrigo <Rodrigo.Siqueira at amd.com>; Pillai, Aurabindo <Aurabindo.Pillai at amd.com>; Hung, Alex <Alex.Hung at amd.com>
Subject: [PATCH][V2] tests/kms_bw: Test outputs with fb of the same resolutions

The hardcoded fb resolution (1920x1080) is replaced by the output
resolution.

Signed-off-by: Alex Hung <alex.hung at amd.com>
---

[V2] Drop PATCH 2

 tests/kms_bw.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/kms_bw.c b/tests/kms_bw.c
index 2a8df5b3..27100587 100644
--- a/tests/kms_bw.c
+++ b/tests/kms_bw.c
@@ -167,8 +167,8 @@ static void run_test_linear_tiling(data_t *data, int pipe, const drmModeModeInfo

                 force_output_mode(data, output, mode);

-               igt_create_color_fb(display->drm_fd, test_mode[0].hdisplay,
-                                   test_mode[0].vdisplay, DRM_FORMAT_XRGB8888,
+               igt_create_color_fb(display->drm_fd, mode->hdisplay,
+                                   mode->vdisplay, DRM_FORMAT_XRGB8888,
                                     DRM_FORMAT_MOD_NONE, 1.f, 0.f, 0.f,
                                     &buffer[i]);

--
2.38.1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/igt-dev/attachments/20221214/7f5e94ec/attachment.htm>


More information about the igt-dev mailing list