ac/nir: move setting shader_info->fs.writes_memory to radv-specific code