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: Add disp_ver as struct data_t member
Date: Fri, 20 Jan 2023 23:11:17 +0530 [thread overview]
Message-ID: <20230120174119.3937-4-swati2.sharma@intel.com> (raw)
In-Reply-To: <20230120174119.3937-1-swati2.sharma@intel.com>
disp_ver is added as struct data_t member. This is required
since features like fractional BPP and DSC YCBCR420 are
getting introduced from MTL+ and we need disp_ver check.
Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
---
tests/i915/kms_dsc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/i915/kms_dsc.c b/tests/i915/kms_dsc.c
index 22239122..8f32ae95 100644
--- a/tests/i915/kms_dsc.c
+++ b/tests/i915/kms_dsc.c
@@ -47,6 +47,7 @@ typedef struct {
igt_output_t *output;
int input_bpc;
int n_pipes;
+ int disp_ver;
enum pipe pipe;
} data_t;
@@ -217,11 +218,12 @@ igt_main
igt_fixture {
data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
data.devid = intel_get_drm_devid(data.drm_fd);
+ data.disp_ver = intel_display_ver(data.devid);
kmstest_set_vt_graphics_mode();
igt_install_exit_handler(kms_dsc_exit_handler);
igt_display_require(&data.display, data.drm_fd);
igt_display_require_output(&data.display);
- igt_require(intel_display_ver(data.devid) >= 11);
+ igt_require(data.disp_ver >= 11);
data.n_pipes = 0;
for_each_pipe(&data.display, i)
data.n_pipes++;
--
2.25.1
next prev parent reply other threads:[~2023-01-20 17:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-20 17:41 [igt-dev] [PATCH i-g-t 0/5] tests/i915/kms_dsc: Reorg + Fix Swati Sharma
2023-01-20 17:41 ` [igt-dev] [PATCH i-g-t 1/5] lib/dsc: Move VDSC functions to separate lib file Swati Sharma
2023-01-20 17:41 ` [igt-dev] [PATCH i-g-t 2/5] Move wrapper functions from kms_dsc to kms_dsc_helper Swati Sharma
2023-01-20 17:41 ` Swati Sharma [this message]
2023-01-20 17:41 ` [igt-dev] [PATCH i-g-t 4/5] tests/i915/kms_dsc_helper: Improve format string Swati Sharma
2023-01-20 17:41 ` [igt-dev] [PATCH i-g-t 5/5] lib/igt_fb: add missing include in header Swati Sharma
2023-01-20 18:12 ` Kamil Konieczny
2023-01-21 5:28 ` Swati Sharma
2023-01-23 10:37 ` Petri Latvala
2023-01-20 18:58 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/i915/kms_dsc: Reorg + Fix Patchwork
2023-01-21 20:10 ` [igt-dev] ✓ Fi.CI.IGT: " 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=20230120174119.3937-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