[Mesa-dev] [PATCH 6/7] glsl: Fix ir_last_opcode value.

Olivier Galibert galibert at pobox.com
Fri Jul 27 11:27:49 PDT 2012


On Fri, Jul 27, 2012 at 10:49:24AM -0700, Kenneth Graunke wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
> 
> Now that ir_quadop_vector exists, ir_last_binop and ir_last_opcode are
> no longer the same.  Only one place currently uses this enumeration, and
> already handles ir_quadop_vector correctly.
> 
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
>  src/glsl/ir.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/glsl/ir.h b/src/glsl/ir.h
> index e2743f6..a69494f 100644
> --- a/src/glsl/ir.h
> +++ b/src/glsl/ir.h
> @@ -1027,7 +1027,7 @@ enum ir_expression_operation {
>     /**
>      * A sentinel marking the last of all operations.
>      */
> -   ir_last_opcode = ir_last_binop
> +   ir_last_opcode = ir_quadop_vector
>  };

Another obvious-in-hindsight bugfix.

Reviewed-by: Olivier Galibert <galibert at pobox.com>


More information about the mesa-dev mailing list