mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
panfrost/midgard: Fix crash on unknown op
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
parent
96eed4e04b
commit
9559280fc3
1 changed files with 6 additions and 2 deletions
|
|
@ -264,6 +264,10 @@ static struct {
|
|||
static bool
|
||||
midgard_is_integer_op(int op)
|
||||
{
|
||||
char prefix = alu_opcode_props[op].name[0];
|
||||
return (prefix == 'i') || (prefix == 'u');
|
||||
const char *name = alu_opcode_props[op].name;
|
||||
|
||||
if (!name)
|
||||
return false;
|
||||
|
||||
return (name[0] == 'i') || (name[0] == 'u');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue