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)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 26 Jun 2015 22:42:29 +0000 (18:42 -0400)
commitad62ec8316a926682958e7ab52639992867c3755
tree9ec42876581683f8e8acdcff2a0068bfc60b4c75
parent052b3d4e2f159038137504f01e9ff2380a67af8b
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>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp