From: Karthik B S <karthik.b.s@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: kunal1.joshi@intel.com
Subject: [igt-dev] [PATCH i-g-t v3] tests/kms_dp_dsc: Use the correct variables
Date: Tue, 15 Jun 2021 09:55:57 +0530 [thread overview]
Message-ID: <20210615042557.16507-1-karthik.b.s@intel.com> (raw)
In-Reply-To: <20210614102708.10229-1-karthik.b.s@intel.com>
Use 'output' here rather than 'data->output' as it is still not populated.
On the same lines, replace 'data->connector' and 'data->pipe' as well.
Fixes: a1772be7dede ("tests/kms_dp_dsc: Bug fix for DP on Pipe A")
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/3494
Signed-off-by: Karthik B S <karthik.b.s@intel.com>
Reviewed-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
---
tests/kms_dp_dsc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/kms_dp_dsc.c b/tests/kms_dp_dsc.c
index 2446fd82..8a4be4f8 100644
--- a/tests/kms_dp_dsc.c
+++ b/tests/kms_dp_dsc.c
@@ -228,7 +228,7 @@ static void run_test(data_t *data, igt_output_t *output,
{
enum pipe pipe;
- data->mode = igt_output_get_mode(data->output);
+ data->mode = igt_output_get_mode(output);
igt_create_pattern_fb(data->drm_fd, data->mode->hdisplay,
data->mode->vdisplay,
DRM_FORMAT_XRGB8888,
@@ -239,8 +239,8 @@ static void run_test(data_t *data, igt_output_t *output,
if (is_i915_device(data->drm_fd)) {
uint32_t devid = intel_get_drm_devid(data->drm_fd);
- if (data->connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort &&
- data->pipe == PIPE_A && IS_GEN11(devid)) {
+ if (output->config.connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort &&
+ pipe == PIPE_A && IS_GEN11(devid)) {
igt_debug("DSC not supported on Pipe A on external DP in Gen11 platforms\n");
continue;
}
--
2.22.0
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2021-06-15 4:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-14 10:27 [igt-dev] [PATCH i-g-t v2] tests/kms_dp_dsc: Assign the proper output Karthik B S
2021-06-14 13:27 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_dp_dsc: Assign the proper output (rev2) Patchwork
2021-06-14 16:35 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-06-15 4:25 ` Karthik B S [this message]
2021-06-15 5:52 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_dp_dsc: Assign the proper output (rev3) Patchwork
2021-06-15 14:02 ` [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=20210615042557.16507-1-karthik.b.s@intel.com \
--to=karthik.b.s@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kunal1.joshi@intel.com \
/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.