[Mesa-dev] [PATCH mesa] freedreno/a2xx: remove duplicate assignment
Rob Clark
robdclark at gmail.com
Sat Jul 30 00:57:38 UTC 2016
thanks, applied locally and will push in next day or two..
BR,
-R
On Fri, Jul 29, 2016 at 8:23 PM, Eric Engestrom <eric at engestrom.ch> wrote:
> CovID: 1362445, 1362446
> Signed-off-by: Eric Engestrom <eric at engestrom.ch>
> ---
> src/gallium/drivers/freedreno/a2xx/ir-a2xx.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/gallium/drivers/freedreno/a2xx/ir-a2xx.h b/src/gallium/drivers/freedreno/a2xx/ir-a2xx.h
> index 822e5ec..36ed204 100644
> --- a/src/gallium/drivers/freedreno/a2xx/ir-a2xx.h
> +++ b/src/gallium/drivers/freedreno/a2xx/ir-a2xx.h
> @@ -158,7 +158,7 @@ static inline struct ir2_instruction *
> ir2_instr_create_vtx_fetch(struct ir2_cf *cf, int ci, int cis,
> enum a2xx_sq_surfaceformat fmt, bool is_signed, int stride)
> {
> - struct ir2_instruction *instr = instr = ir2_instr_create(cf, IR2_FETCH);
> + struct ir2_instruction *instr = ir2_instr_create(cf, IR2_FETCH);
> instr->fetch.opc = VTX_FETCH;
> instr->fetch.const_idx = ci;
> instr->fetch.const_idx_sel = cis;
> @@ -170,7 +170,7 @@ ir2_instr_create_vtx_fetch(struct ir2_cf *cf, int ci, int cis,
> static inline struct ir2_instruction *
> ir2_instr_create_tex_fetch(struct ir2_cf *cf, int ci)
> {
> - struct ir2_instruction *instr = instr = ir2_instr_create(cf, IR2_FETCH);
> + struct ir2_instruction *instr = ir2_instr_create(cf, IR2_FETCH);
> instr->fetch.opc = TEX_FETCH;
> instr->fetch.const_idx = ci;
> return instr;
> --
> 2.9.0
>
More information about the mesa-dev
mailing list