[Mesa-dev] [PATCH] gk110/ir: fix wrong emission of NOT modifier for VOTE

Ilia Mirkin imirkin at alum.mit.edu
Wed Mar 2 19:10:32 UTC 2016


Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

On Wed, Mar 2, 2016 at 12:11 PM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> Spotted by Coverity.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> Reported-by: Matt Turner <mattst88 at gmail.com>
> ---
>  src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
> index b6b3ec7..8512d0d 100644
> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
> @@ -1386,7 +1386,7 @@ CodeEmitterGK110::emitVOTE(const Instruction *i)
>     defId(i->def(0), 2);
>     defId(i->def(1), 48);
>     if (i->src(0).mod == Modifier(NV50_IR_MOD_NOT))
> -      code[0] |= 1 << 45;
> +      code[1] |= 1 << 13;
>     srcId(i->src(0), 42);
>  }
>
> --
> 2.7.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list