mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 04:00:10 +01:00
nir/range-analysis: Fail gracefully on non-SSA sources
Tested-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
1290cc3e27
commit
f2965fde9b
1 changed files with 3 additions and 0 deletions
|
|
@ -217,6 +217,9 @@ static struct ssa_result_range
|
|||
analyze_expression(const nir_alu_instr *instr, unsigned src,
|
||||
struct hash_table *ht)
|
||||
{
|
||||
if (!instr->src[src].src.is_ssa)
|
||||
return (struct ssa_result_range){unknown, false};
|
||||
|
||||
if (nir_src_is_const(instr->src[src].src))
|
||||
return analyze_constant(instr, src);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue