[igt-dev] [PATCH i-g-t] lib: Put edid_ar_svds where it's used

Petri Latvala petri.latvala at intel.com
Tue Apr 27 05:42:19 UTC 2021


edid_ar_svds was hiding in igt_chamelium instead of igt_kms where it's
used, breaking IGT building when chamelium support was disabled.

Signed-off-by: Petri Latvala <petri.latvala at intel.com>
Cc: Kunal Joshi <kunal1.joshi at intel.com>
---
 lib/igt_chamelium.h | 5 -----
 lib/igt_kms.c       | 5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/igt_chamelium.h b/lib/igt_chamelium.h
index 019bdbfe..f40e848e 100644
--- a/lib/igt_chamelium.h
+++ b/lib/igt_chamelium.h
@@ -82,11 +82,6 @@ struct chamelium_infoframe {
 
 struct chamelium_edid;
 
-/* Set of Video Identification Codes advertised in the EDID */
-static const uint8_t edid_ar_svds[] = {
-	16, /* 1080p @ 60Hz, 16:9 */
-};
-
 /**
  * CHAMELIUM_MAX_PORTS: the maximum number of ports supported by igt_chamelium.
  *
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index df946a7d..47b829b0 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -478,6 +478,11 @@ const struct edid *igt_kms_get_3d_edid(void)
 	return edid;
 }
 
+/* Set of Video Identification Codes advertised in the EDID */
+static const uint8_t edid_ar_svds[] = {
+	16, /* 1080p @ 60Hz, 16:9 */
+};
+
 /**
  * igt_kms_get_aspect_ratio_edid:
  *
-- 
2.29.2



More information about the igt-dev mailing list