[Mesa-dev] [PATCH 06/16] mesa: Fix a "1" vs "i" typo in MVP setup.

Ian Romanick idr at freedesktop.org
Wed May 28 12:18:28 PDT 2014


This should also get tagged for stable... probably 10.1 and 10.2.

On 05/28/2014 11:37 AM, Eric Anholt wrote:
> It doesn't matter, because the instructions were initialized to noop
> swizzles anyway.
> ---
>  src/mesa/program/programopt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/mesa/program/programopt.c b/src/mesa/program/programopt.c
> index 92a8831..ee822be 100644
> --- a/src/mesa/program/programopt.c
> +++ b/src/mesa/program/programopt.c
> @@ -183,7 +183,7 @@ _mesa_insert_mvp_mad_code(struct gl_context *ctx, struct gl_vertex_program *vpro
>        newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP;
>        newInst[i].SrcReg[2].File = PROGRAM_TEMPORARY;
>        newInst[i].SrcReg[2].Index = hposTemp;
> -      newInst[1].SrcReg[2].Swizzle = SWIZZLE_NOOP;
> +      newInst[i].SrcReg[2].Swizzle = SWIZZLE_NOOP;
>     }
>  
>     newInst[3].Opcode = OPCODE_MAD;
> 



More information about the mesa-dev mailing list