<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#0000FF;margin:5pt;" align="Left">
[AMD Official Use Only - General]<br>
</p>
<br>
<div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com><br>
</span></div>
<div class="elementToProof">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
--</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Jay<br>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Hung, Alex <Alex.Hung@amd.com><br>
<b>Sent:</b> Wednesday, December 14, 2022 1:19 PM<br>
<b>To:</b> igt-dev@lists.freedesktop.org <igt-dev@lists.freedesktop.org><br>
<b>Cc:</b> Siqueira, Rodrigo <Rodrigo.Siqueira@amd.com>; Pillai, Aurabindo <Aurabindo.Pillai@amd.com>; Hung, Alex <Alex.Hung@amd.com><br>
<b>Subject:</b> [PATCH][V2] tests/kms_bw: Test outputs with fb of the same resolutions</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">The hardcoded fb resolution (1920x1080) is replaced by the output<br>
resolution.<br>
<br>
Signed-off-by: Alex Hung <alex.hung@amd.com><br>
---<br>
<br>
[V2] Drop PATCH 2<br>
<br>
 tests/kms_bw.c | 4 ++--<br>
 1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/tests/kms_bw.c b/tests/kms_bw.c<br>
index 2a8df5b3..27100587 100644<br>
--- a/tests/kms_bw.c<br>
+++ b/tests/kms_bw.c<br>
@@ -167,8 +167,8 @@ static void run_test_linear_tiling(data_t *data, int pipe, const drmModeModeInfo<br>
 <br>
                 force_output_mode(data, output, mode);<br>
 <br>
-               igt_create_color_fb(display->drm_fd, test_mode[0].hdisplay,<br>
-                                   test_mode[0].vdisplay, DRM_FORMAT_XRGB8888,<br>
+               igt_create_color_fb(display->drm_fd, mode->hdisplay,<br>
+                                   mode->vdisplay, DRM_FORMAT_XRGB8888,<br>
                                     DRM_FORMAT_MOD_NONE, 1.f, 0.f, 0.f,<br>
                                     &buffer[i]);<br>
 <br>
-- <br>
2.38.1<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>