[igt-dev] [PATCH i-g-t v3] tests/kms_dp_dsc: Use the correct variables

Karthik B S karthik.b.s at intel.com
Tue Jun 15 04:25:57 UTC 2021


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 at intel.com>
Reviewed-by: Vandita Kulkarni <vandita.kulkarni at 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



More information about the igt-dev mailing list