OSDN Git Service

nv50/ir: propagate modifier to right arg when const-folding mad
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 26 Jun 2015 19:01:22 +0000 (15:01 -0400)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 1 Jul 2015 14:22:40 +0000 (15:22 +0100)
commit16b6fa972d35b1c4047a98bb6aefbd41f1ac2f78
tree2350f58c04747b6416c3eeea883c0761dc2d777b
parent3c4570e3fc283f81b5cf4b3b05a9bb66cf47ae2f
nv50/ir: propagate modifier to right arg when const-folding mad

An immediate has to be the second arg of an ADD operation. However we
were mistakenly propagating the modifier of the non-folded value to the
folded immediate argument.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91117
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit ad62ec8316a926682958e7ab52639992867c3755)
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp