mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 18:08:40 +02:00
nv50/ir: avoid looking at uninitialized srcMods entries
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 2b98914fe0)
This commit is contained in:
parent
4ae9142f8b
commit
ca6d0a3dbe
2 changed files with 2 additions and 2 deletions
|
|
@ -454,7 +454,7 @@ TargetNV50::isModSupported(const Instruction *insn, int s, Modifier mod) const
|
|||
return false;
|
||||
}
|
||||
}
|
||||
if (s >= 3)
|
||||
if (s >= opInfo[insn->op].srcNr || s >= 3)
|
||||
return false;
|
||||
return (mod & Modifier(opInfo[insn->op].srcMods[s])) == mod;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -439,7 +439,7 @@ TargetNVC0::isModSupported(const Instruction *insn, int s, Modifier mod) const
|
|||
return false;
|
||||
}
|
||||
}
|
||||
if (s >= 3)
|
||||
if (s >= opInfo[insn->op].srcNr || s >= 3)
|
||||
return false;
|
||||
return (mod & Modifier(opInfo[insn->op].srcMods[s])) == mod;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue