diff options
| author | Jason-JH Lin <jason-jh.lin@mediatek.com> | 2025-10-22 01:37:49 +0800 |
|---|---|---|
| committer | Kamil Konieczny <kamil.konieczny@linux.intel.com> | 2025-10-23 14:40:04 +0200 |
| commit | 60e5612e24f81645f2c47454d53c160ad6fb5e0f (patch) | |
| tree | aad2d3c2f3f8c9a7098222a3d88474eb3d7ed642 | |
| parent | 4f3855597b60a9ac92c98a2bb1f5b40f6af4a2df (diff) | |
tests/kms_hdr: Use original 512x512 fb size on devices without scaler
Ensure devices without scaler retain the original 512x512 framebuffer
size during plane setup. Previously, all outputs were set to display
resolution size, which may not be supported on devices lacking scaler.
For such hardware, always use 512x512, matching the initial framebuffer
creation, to improve test reliability.
Signed-off-by: Jason-JH Lin <jason-jh.lin@mediatek.com>
Reviewed-by: Fei Shao <fshao@chromium.org>
| -rw-r--r-- | tests/kms_hdr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/kms_hdr.c b/tests/kms_hdr.c index efa5964cf..40187275b 100644 --- a/tests/kms_hdr.c +++ b/tests/kms_hdr.c @@ -257,7 +257,11 @@ static void test_bpc_switch_on_output(data_t *data, enum pipe pipe, * smaller plane size in following tests. */ igt_plane_set_fb(data->primary, &afb); - igt_plane_set_size(data->primary, data->w, data->h); + if (get_num_scalers(display, pipe) >= 1) + igt_plane_set_size(data->primary, data->w, data->h); + else + igt_plane_set_size(data->primary, 512, 512); + ret = igt_display_try_commit_atomic(display, DRM_MODE_ATOMIC_TEST_ONLY, NULL); if (!ret) { data->w = afb.width; |
