mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 00:10:10 +01:00
gm107/ir: make use of IMUL32I for all immediates
IMUL only allows to emit 19-bits immediates. This is similar to
d30768025a 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>
This commit is contained in:
parent
d93bacc1fa
commit
b84c97587b
1 changed files with 1 additions and 1 deletions
|
|
@ -1719,7 +1719,7 @@ CodeEmitterGM107::emitIADD()
|
||||||
void
|
void
|
||||||
CodeEmitterGM107::emitIMUL()
|
CodeEmitterGM107::emitIMUL()
|
||||||
{
|
{
|
||||||
if (!longIMMD(insn->src(1))) {
|
if (insn->src(1).getFile() != FILE_IMMEDIATE) {
|
||||||
switch (insn->src(1).getFile()) {
|
switch (insn->src(1).getFile()) {
|
||||||
case FILE_GPR:
|
case FILE_GPR:
|
||||||
emitInsn(0x5c380000);
|
emitInsn(0x5c380000);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue