[igt-dev] [PATCH i-g-t 3/4] tests/kms_3d: Accept any HDMI connector

Arkadiusz Hiler
2019-07-25T12:36:22Z

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Connector forcing works just fine even if it already has
something physically connected. So accept any HDMI connector
for the test.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
---
tests/kms_3d.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/kms_3d.c b/tests/kms_3d.c
index aed3bee3..6117dfe0 100644
--- a/tests/kms_3d.c
+++ b/tests/kms_3d.c
@@ -46,8 +46,7 @@ igt_simple_main

connector = drmModeGetConnectorCurrent(drm_fd, res->connectors[i]);

- if (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA &&
- connector->connection == DRM_MODE_DISCONNECTED)
+ if (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA)
break;

drmModeFreeConnector(connector);
--
2.21.0