Skip to content

nir: Fix undef creation in loop unrolling

Caio Oliveira requested to merge cmarcelo/mesa:review/nir-fix-loop-unroll into master

Copy_deref intrinsics don't set the num_components, so we need to get it from the destination. Missing this was causing some invalid NIR being produced from shader-db.

Fixes: e8a8937a "nir: add partial loop unrolling support"

Merge request reports