[Mesa-dev] [PATCH] nvc0/ir: fix emiting NOTs with predicates
Ilia Mirkin
imirkin at alum.mit.edu
Tue Mar 27 13:28:45 UTC 2018
On Tue, Mar 27, 2018 at 9:24 AM, Karol Herbst <kherbst at redhat.com> wrote:
> From: Karol Herbst <karolherbst at gmail.com>
>
> Signed-off-by: Karol Herbst <karolherbst at gmail.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
> src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp
> index e2c41a0e264..2f7dbd9519f 100644
> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp
> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp
> @@ -853,6 +853,8 @@ void
> CodeEmitterNVC0::emitNOT(Instruction *i)
> {
> assert(i->encSize == 8);
> + if (i->getPredicate())
> + i->moveSources(1, 1);
> i->setSrc(1, i->src(0));
> emitForm_A(i, HEX64(68000000, 000001c3));
> }
> --
> 2.14.3
>
> _______________________________________________
> 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