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)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 26 Oct 2016 20:18:04 +0000 (22:18 +0200)
commit1ec7227d44dceae8de7b93f846bbd33d66007909
tree4f4ea636e89292846236fd8f3f9f9a2bf2e401ad
parentaca491341b57fac05901943d693e264b589925f5
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>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp