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 2/4] tests/intel/kms_dsc_helper: Add helper to force compressed BPP
Date: Fri, 31 Jul 2026 17:51:43 +0530 [thread overview]
Message-ID: <20260731122145.4099468-3-swati2.sharma@intel.com> (raw)
In-Reply-To: <20260731122145.4099468-1-swati2.sharma@intel.com>
Helper function is added to force compressed BPP.
v2: Rebase
Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
---
tests/intel/kms_dsc_helper.c | 10 ++++++++++
tests/intel/kms_dsc_helper.h | 1 +
2 files changed, 11 insertions(+)
diff --git a/tests/intel/kms_dsc_helper.c b/tests/intel/kms_dsc_helper.c
index 9f581758f..50de12fe1 100644
--- a/tests/intel/kms_dsc_helper.c
+++ b/tests/intel/kms_dsc_helper.c
@@ -29,6 +29,16 @@ void force_dsc_enable_bpc(int drmfd, igt_output_t *output, int input_bpc)
igt_assert_f(ret == 0, "forcing input dsc bpc debugfs_write failed\n");
}
+void force_dsc_enable_compressed_bpp(int drmfd, igt_output_t *output, float compressed_bpp)
+{
+ int ret;
+
+ igt_debug("Forcing compressed DSC BPP to %.2f on %s\n",
+ compressed_bpp, output->name);
+ ret = igt_force_dsc_enable_compressed_bpp(drmfd, output->name, compressed_bpp);
+ igt_assert_f(ret == 0, "forcing compressed dsc bpp debugfs_write failed\n");
+}
+
void save_force_dsc_en(int drmfd, igt_output_t *output)
{
force_dsc_en_orig =
diff --git a/tests/intel/kms_dsc_helper.h b/tests/intel/kms_dsc_helper.h
index 542fe46de..ba616468e 100644
--- a/tests/intel/kms_dsc_helper.h
+++ b/tests/intel/kms_dsc_helper.h
@@ -24,6 +24,7 @@
void force_dsc_enable(int drmfd, igt_output_t *output);
void force_dsc_enable_bpc(int drmfd, igt_output_t *output, int input_bpc);
+void force_dsc_enable_compressed_bpp(int drmfd, igt_output_t *output, float compressed_bpp);
void save_force_dsc_en(int drmfd, igt_output_t *output);
void restore_force_dsc_en(void);
void kms_dsc_exit_handler(int sig);
--
2.25.1
next prev parent reply other threads:[~2026-07-31 12:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-31 12:21 [PATCH i-g-t 0/4] Add DSC compressed BPP subtest Swati Sharma
2026-07-31 12:21 ` [PATCH i-g-t 1/4] lib/dsc: Add igt_force_dsc_enable_compressed_bpp() Swati Sharma
2026-07-31 12:21 ` Swati Sharma [this message]
2026-07-31 12:21 ` [PATCH i-g-t 3/4] lib/dsc: Add igt_get_dsc_sink_compressed_bpp() Swati Sharma
2026-07-31 12:21 ` [PATCH i-g-t 4/4] tests/intel/kms_dsc: Add dsc-compressed-bpp subtest Swati Sharma
2026-07-31 13:00 ` ✓ Xe.CI.BAT: success for Add DSC compressed BPP subtest (rev2) Patchwork
2026-07-31 13:28 ` ✗ i915.CI.BAT: failure " Patchwork
2026-07-31 14:00 ` ✗ Xe.CI.FULL: " 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=20260731122145.4099468-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox