diff options
author | Timothy Arceri <[email protected]> | 2015-08-02 14:57:38 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2015-08-03 21:36:50 +1000 |
commit | ab5b7a0fe659ff6f9c1885d5cb047b6531959506 (patch) | |
tree | dc9eb6eac61ea247e1640f273e61c35c03fb0b5e /src/glsl/nir | |
parent | 9ef5b7a23348291893a6bf61fcce7a306e787add (diff) |
nir: Use a single bit for the dual-source blend index
The only values allowed are 0 and 1, and the value is checked before
assigning.
This is a copy of 8eeca7a56c that seems to have been made to the glsl
ir type after it was copied for use in nir but before nir landed.
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/glsl/nir')
-rw-r--r-- | src/glsl/nir/nir.h | 8 |
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. |