Skip to content

Commit

Permalink
{mesa 538d2c33 cherrypick} nv50/ir: fix crash in isUniform for undefi…
Browse files Browse the repository at this point in the history
…ned values
  • Loading branch information
fincs committed Jan 22, 2020
1 parent 1ca10a7 commit f3ae30f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mesa-imported/codegen/nv50_ir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ LValue::isUniform() const
if (defs.size() > 1)
return false;
Instruction *insn = getInsn();
if (!insn)
return false;
// let's not try too hard here for now ...
return !insn->srcExists(1) && insn->getSrc(0)->isUniform();
}
Expand Down

0 comments on commit f3ae30f

Please sign in to comment.