OSDN Git Service

gm107/ir: make use of IMUL32I for all immediates
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 26 Jun 2016 16:42:22 +0000 (18:42 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 7 Jul 2016 15:12:30 +0000 (16:12 +0100)
commit2fc24cfd8c38b401b8c9eaafe0ee513ecc20acc8
tree7f72339bf5bb053776c78d1443ff98501702f120
parent507d19c44ff2063ab00acac8a6de461dc3b69767
gm107/ir: make use of IMUL32I for all immediates

IMUL only allows to emit 19-bits immediates. This is similar to
d30768025a2283d4cc57930b784798bf278969da which fixed the same thing
for the GK110 emitter.

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