summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/glsl/nir/nir.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index 62cdbd4a5fb..6c954c0ef7c 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -292,9 +292,13 @@ typedef struct {
unsigned int driver_location;
/**
- * output index for dual source blending.
+ * Output index for dual source blending.
+ *
+ * \note
+ * The GLSL spec only allows the values 0 or 1 for the index in \b dual
+ * source blending.
*/
- int index;
+ unsigned index:1;
/**
* Initial binding point for a sampler or UBO.