nir/loop_analyze: use nir_alu_src to track the invariant
This helps reduce the amount of abstraction in this pass and allows us to retain more information about the src such as any swizzles. Retaining the swizzle information is required for a bugfix in a following patch. Fixes: 6772a17a ("nir: Add a loop analysis pass") Tested-by:Brian Paul <brianp@vmware.com>
Showing
Please register or sign in to comment