glsl: Fix ir_print_visitor's handling of interpolation qualifiers.
authorPaul Berry <stereotype441@gmail.com>
Sun, 7 Apr 2013 02:16:58 +0000 (19:16 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 9 Apr 2013 17:19:11 +0000 (10:19 -0700)
commit67f226e179b7116379506f7b2c6c8d2b49ab97b2
treef2aab9548e0c57ce9d8f0954b4effc02c706532d
parentc2958741298f54ac0360a90f79799b46da248328
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 <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
v2: Add a STATIC_ASSERT to make sure the array is the correct size.
This required adding INTERP_QUALIFIER_COUNT to the enum.
src/glsl/ir_print_visitor.cpp
src/mesa/main/mtypes.h