[PATCH i-g-t v3, 1/3] tests/intel/kms_dsc: move restore funcs() to reset func()
Swati Sharma
swati2.sharma at intel.com
Wed Sep 4 07:24:23 UTC 2024
It makes sense to move restore funcs() to reset func().
Signed-off-by: Swati Sharma <swati2.sharma at 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
More information about the igt-dev
mailing list