[Mesa-dev] [PATCH 1/2] gm107/ir: add missing NEG modifier for IADD32I

Ilia Mirkin imirkin at alum.mit.edu
Tue Jul 19 15:55:45 UTC 2016


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

On Tue, Jul 19, 2016 at 8:47 AM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> Like FADD32I, the NEG modifier of src0 is at position 56.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> Cc: mesa-stable at lists.freedesktop.org
> ---
>  src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp
> index f1ba27a..5ae1898 100644
> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp
> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp
> @@ -1707,6 +1707,7 @@ CodeEmitterGM107::emitIADD()
>        emitX  (0x2b);
>     } else {
>        emitInsn(0x1c000000);
> +      emitNEG (0x38, insn->src(0));
>        emitSAT (0x36);
>        emitX   (0x35);
>        emitCC  (0x34);
> --
> 2.8.0
>
> _______________________________________________
> 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