From: Swati Sharma <swati2.sharma@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Swati Sharma <swati2.sharma@intel.com>
Subject: [PATCH i-g-t v3, 1/3] tests/intel/kms_dsc: move restore funcs() to reset func()
Date: Wed, 4 Sep 2024 12:54:23 +0530 [thread overview]
Message-ID: <20240904072425.1022100-2-swati2.sharma@intel.com> (raw)
In-Reply-To: <20240904072425.1022100-1-swati2.sharma@intel.com>
It makes sense to move restore funcs() to reset func().
Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
---
tests/intel/kms_dsc.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/intel/kms_dsc.c b/tests/intel/kms_dsc.c
index 9b48caf76..ef4646957 100644
--- a/tests/intel/kms_dsc.c
+++ b/tests/intel/kms_dsc.c
@@ -126,6 +126,9 @@ static void test_reset(data_t *data)
igt_debug("Reset DSC output format\n");
data->output_format = DSC_FORMAT_RGB;
force_dsc_output_format(data->drm_fd, data->output, data->output_format);
+
+ restore_force_dsc_en();
+ restore_force_dsc_fractional_bpp_en();
}
static void test_cleanup(data_t *data)
@@ -236,8 +239,6 @@ static void update_display(data_t *data, uint32_t test_type)
mode->vrefresh,
enabled ? "ON" : "OFF");
- restore_force_dsc_en();
- restore_force_dsc_fractional_bpp_en();
if (test_type & TEST_DSC_BPC) {
current_bpc = igt_get_pipe_current_bpc(data->drm_fd, data->pipe);
--
2.25.1
next prev parent reply other threads:[~2024-09-04 7:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-04 7:24 [PATCH i-g-t v3,0/3] Add dsc+bigjoiner subtest Swati Sharma
2024-09-04 7:24 ` Swati Sharma [this message]
2024-09-04 7:24 ` [PATCH i-g-t v3,2/3] dsc: add dsc+big joiner helper func Swati Sharma
2024-09-04 7:24 ` [PATCH i-g-t v3,3/3] tests/intel/kms_dsc: add new subtest Swati Sharma
2024-09-04 17:02 ` ✓ Fi.CI.BAT: success for Add dsc+bigjoiner subtest (rev3) Patchwork
2024-09-04 17:05 ` ✓ CI.xeBAT: " Patchwork
2024-09-05 14:33 ` ✗ Fi.CI.IGT: failure " 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=20240904072425.1022100-2-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