OSDN Git Service

nvc0/ir: fix emission of SHLADD with NEG modifiers
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 21 Oct 2016 15:43:00 +0000 (17:43 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 27 Oct 2016 10:28:30 +0000 (11:28 +0100)
commit5c004253543eb1ebc492be127f21cc8cd335384a
treee188cf72662f77e87362cf4aa526acfc9a26e0df
parent6458a9dc6cb045ea297bfcd4d652c8f7e55911ab
nvc0/ir: fix emission of SHLADD with NEG modifiers

This affects GF100:GK110 chipsets, but not GM107+ where the
logic is a bit different. The emitters tried to emit sub
instead of subr when src0 has a NEG modifier.

This fixes the following piglit tests glsl-fs-loop-nested
and glsl-vs-loop-nested.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 1ec7227d44dceae8de7b93f846bbd33d66007909)
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp