From 9b0029ff50bb7a711a94d98a4e561d52ae266109 Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Wed, 15 Apr 2020 13:57:47 +0100
Subject: [PATCH] runtime: Clarify what's going on with IcdDetails.kinds[0]

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 src/runtime.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/runtime.c b/src/runtime.c
index 21201073f..df79beedf 100644
--- a/src/runtime.c
+++ b/src/runtime.c
@@ -682,7 +682,10 @@ typedef struct
    * or (type SrtVaApiDriver) */
   gpointer icd;
   gchar *resolved_library;
-  /* Last entry is always NONEXISTENT */
+  /* Last entry is always NONEXISTENT.
+   * For VA-API, we use [0] and ignore the other elements.
+   * For the rest, this is keyed by the index of a multiarch tuple
+   * in multiarch_tuples. */
   IcdKind kinds[G_N_ELEMENTS (multiarch_tuples)];
   /* Last entry is always NULL */
   gchar *paths_in_container[G_N_ELEMENTS (multiarch_tuples)];
-- 
GitLab