From: Swati Sharma <swati2.sharma@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 3/5] tests/i915/kms_dsc: Remove pointless struct
Date: Tue, 24 Jan 2023 12:21:50 +0530 [thread overview]
Message-ID: <20230124065152.19747-4-swati2.sharma@intel.com> (raw)
In-Reply-To: <20230124065152.19747-1-swati2.sharma@intel.com>
Array can be used for plane_format. Use that and remove
struct.
Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
---
tests/i915/kms_dsc.c | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/tests/i915/kms_dsc.c b/tests/i915/kms_dsc.c
index af9466518..62df87636 100644
--- a/tests/i915/kms_dsc.c
+++ b/tests/i915/kms_dsc.c
@@ -52,16 +52,7 @@ typedef struct {
enum pipe pipe;
} data_t;
-const struct {
- const int format;
- const char format_str[20];
-} format_list[] = {
- {DRM_FORMAT_XYUV8888, "XYUV8888"},
- {DRM_FORMAT_XRGB2101010, "XRGB2101010"},
- {DRM_FORMAT_XRGB16161616F, "XRGB16161616F"},
- {DRM_FORMAT_YUYV, "YUYV"},
-};
-
+int format_list[] = {DRM_FORMAT_XYUV8888, DRM_FORMAT_XRGB2101010, DRM_FORMAT_XRGB16161616F, DRM_FORMAT_YUYV};
uint32_t bpc_list[] = {12, 10, 8};
static inline void manual(const char *expected)
@@ -242,7 +233,7 @@ igt_main
"with default parameters and creating fb with diff formats");
igt_subtest_with_dynamic("dsc-with-formats") {
for (int k = 0; k < ARRAY_SIZE(format_list); k++)
- test_dsc(&data, TEST_DSC_BASIC, 0, format_list[k].format);
+ test_dsc(&data, TEST_DSC_BASIC, 0, format_list[k]);
}
igt_describe("Tests basic display stream compression functionality if supported "
@@ -259,7 +250,7 @@ igt_main
igt_subtest_with_dynamic("dsc-with-bpc-formats") {
for (int j = 0; j < ARRAY_SIZE(bpc_list); j++) {
for (int k = 0; k < ARRAY_SIZE(format_list); k++) {
- test_dsc(&data, TEST_DSC_BPC, bpc_list[j], format_list[k].format);
+ test_dsc(&data, TEST_DSC_BPC, bpc_list[j], format_list[k]);
}
}
}
--
2.25.1
next prev parent reply other threads:[~2023-01-24 6:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-24 6:51 [igt-dev] [PATCH i-g-t 0/5] Enable VDSC output formats validation Swati Sharma
2023-01-24 6:51 ` [igt-dev] [PATCH i-g-t 1/5] lib/dsc: Fix return value Swati Sharma
2023-01-24 6:51 ` [igt-dev] [PATCH i-g-t 2/5] tests/i915/kms_dsc: Add plane_format as struct data_t member Swati Sharma
2023-01-24 6:51 ` Swati Sharma [this message]
2023-01-24 10:47 ` [igt-dev] [PATCH i-g-t 3/5] tests/i915/kms_dsc: Remove pointless struct Hogander, Jouni
2023-01-24 10:51 ` Swati Sharma
2023-01-24 6:51 ` [igt-dev] [PATCH i-g-t 4/5] lib/dsc: Add helpers for VDSC output format debugfs entry Swati Sharma
2023-01-24 6:51 ` [igt-dev] [PATCH i-g-t 5/5] tests/i915/kms_dsc: Enable validation for VDSC output formats Swati Sharma
2023-01-24 10:53 ` Hogander, Jouni
2023-01-24 11:32 ` Swati Sharma
2023-01-24 7:36 ` [igt-dev] ✗ Fi.CI.BAT: failure for Enable VDSC output formats validation Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230124065152.19747-4-swati2.sharma@intel.com \
--to=swati2.sharma@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox