diff options
author | Paul Berry <[email protected]> | 2013-04-06 19:16:58 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-04-09 10:19:11 -0700 |
commit | 67f226e179b7116379506f7b2c6c8d2b49ab97b2 (patch) | |
tree | f2aab9548e0c57ce9d8f0954b4effc02c706532d /src/mesa | |
parent | c2958741298f54ac0360a90f79799b46da248328 (diff) |
glsl: Fix ir_print_visitor's handling of interpolation qualifiers.
This patch updates the interp[] array to match the enum
glsl_interp_qualifier.
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
v2: Add a STATIC_ASSERT to make sure the array is the correct size.
This required adding INTERP_QUALIFIER_COUNT to the enum.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/mtypes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 008f68bda08..e46fa39ef5d 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1829,7 +1829,8 @@ enum glsl_interp_qualifier INTERP_QUALIFIER_NONE = 0, INTERP_QUALIFIER_SMOOTH, INTERP_QUALIFIER_FLAT, - INTERP_QUALIFIER_NOPERSPECTIVE + INTERP_QUALIFIER_NOPERSPECTIVE, + INTERP_QUALIFIER_COUNT /**< Number of interpolation qualifiers */ }; |