compiler/nir: check whether var is an input in lower_fragcoord_wtrans
Otherwise the lowering pass might try to lower any other deref_load if the deref var happens to have var.data.location == 0
.
Fixes: 418c4c0d compiler/nir: extend lower_fragcoord_wtrans to support VARYING_SLOT_POS