From: Swati Sharma <swati2.sharma@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 2/5] tests/i915/kms_dsc: Add plane_format as struct data_t member
Date: Tue, 24 Jan 2023 12:21:49 +0530 [thread overview]
Message-ID: <20230124065152.19747-3-swati2.sharma@intel.com> (raw)
In-Reply-To: <20230124065152.19747-1-swati2.sharma@intel.com>
plane_format is added as struct data_t member. Also, corresponding
changes are done to accommodate this change.
Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
---
tests/i915/kms_dsc.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/tests/i915/kms_dsc.c b/tests/i915/kms_dsc.c
index 8f32ae950..af9466518 100644
--- a/tests/i915/kms_dsc.c
+++ b/tests/i915/kms_dsc.c
@@ -44,6 +44,7 @@ typedef struct {
uint32_t devid;
igt_display_t display;
struct igt_fb fb_test_pattern;
+ unsigned int plane_format;
igt_output_t *output;
int input_bpc;
int n_pipes;
@@ -108,7 +109,7 @@ static void test_cleanup(data_t *data)
}
/* re-probe connectors and do a modeset with DSC */
-static void update_display(data_t *data, enum dsc_test_type test_type, unsigned int plane_format)
+static void update_display(data_t *data, enum dsc_test_type test_type)
{
bool enabled;
igt_plane_t *primary;
@@ -137,13 +138,13 @@ static void update_display(data_t *data, enum dsc_test_type test_type, unsigned
primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
- igt_skip_on(!igt_plane_has_format_mod(primary, plane_format,
+ igt_skip_on(!igt_plane_has_format_mod(primary, data->plane_format,
DRM_FORMAT_MOD_LINEAR));
igt_create_pattern_fb(data->drm_fd,
mode->hdisplay,
mode->vdisplay,
- plane_format,
+ data->plane_format,
DRM_FORMAT_MOD_LINEAR,
&data->fb_test_pattern);
@@ -184,6 +185,7 @@ static void test_dsc(data_t *data, enum dsc_test_type test_type, int bpc,
enum pipe pipe;
for_each_pipe_with_valid_output(display, pipe, output) {
+ data->plane_format = plane_format;
data->input_bpc = bpc;
data->output = output;
data->pipe = pipe;
@@ -201,12 +203,12 @@ static void test_dsc(data_t *data, enum dsc_test_type test_type, int bpc,
continue;
if (test_type == TEST_DSC_BPC)
- snprintf(name, sizeof(name), "-%dbpc-%s", data->input_bpc, igt_format_str(plane_format));
+ snprintf(name, sizeof(name), "-%dbpc-%s", data->input_bpc, igt_format_str(data->plane_format));
else
- snprintf(name, sizeof(name), "-%s", igt_format_str(plane_format));
+ snprintf(name, sizeof(name), "-%s", igt_format_str(data->plane_format));
igt_dynamic_f("pipe-%s-%s%s", kmstest_pipe_name(data->pipe), data->output->name, name)
- update_display(data, test_type, plane_format);
+ update_display(data, test_type);
}
}
--
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 ` Swati Sharma [this message]
2023-01-24 6:51 ` [igt-dev] [PATCH i-g-t 3/5] tests/i915/kms_dsc: Remove pointless struct Swati Sharma
2023-01-24 10:47 ` 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-3-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.