v3d: prefer using nir_src_comp_as_int over nir_src_as_const_value