[PATCH 3/5] tools/amd_hdmi_compliance: Fix VIC 0 not working

Alex Hung alex.hung at amd.com
Thu Oct 24 21:03:43 UTC 2024


From: Stylon Wang <stylon.wang at amd.com>

[WHY]
VIC 0 is not working with -t option

[HOW]
Make 0 pass as a valid VIC

Signed-off-by: Alex Hung <alex.hung at amd.com>
Signed-off-by: Stylon Wang <stylon.wang at amd.com>
---
 tools/amd_hdmi_compliance.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/amd_hdmi_compliance.c b/tools/amd_hdmi_compliance.c
index c0a324eb9..f06af72b0 100644
--- a/tools/amd_hdmi_compliance.c
+++ b/tools/amd_hdmi_compliance.c
@@ -527,7 +527,7 @@ int main(int argc, char **argv)
 	if (max_bpc)
 		set_max_bpc(&data, max_bpc, conn_id);
 
-	if (vic) {
+	if (vic >= 0) {
 		if (vic > ARRAY_SIZE(test_modes) ||
 		!test_modes[vic].name[0]) {
 			igt_warn("VIC %d is not supported\n", vic);
-- 
2.43.0



More information about the igt-dev mailing list