[Mesa-dev] [PATCH] glsl: Fix ir_print_visitor's handling of interpolation qualifiers.

Jordan Justen jljusten at gmail.com
Sat Apr 6 20:30:13 PDT 2013


Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>

On Sat, Apr 6, 2013 at 7:20 PM, Paul Berry <stereotype441 at gmail.com> wrote:
> This patch updates the interp[] array to match the enum
> glsl_interp_qualifier.
> ---
>  src/glsl/ir_print_visitor.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/glsl/ir_print_visitor.cpp b/src/glsl/ir_print_visitor.cpp
> index 597d281..8b445dc 100644
> --- a/src/glsl/ir_print_visitor.cpp
> +++ b/src/glsl/ir_print_visitor.cpp
> @@ -149,7 +149,7 @@ void ir_print_visitor::visit(ir_variable *ir)
>     const char *const mode[] = { "", "uniform ", "shader_in ", "shader_out ",
>                                  "in ", "out ", "inout ",
>                                 "const_in ", "sys ", "temporary " };
> -   const char *const interp[] = { "", "flat", "noperspective" };
> +   const char *const interp[] = { "", "smooth", "flat", "noperspective" };
>
>     printf("(%s%s%s%s) ",
>           cent, inv, mode[ir->mode], interp[ir->interpolation]);
> --
> 1.8.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list