diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs_analysis.c b/src/gallium/drivers/llvmpipe/lp_state_fs_analysis.c index 69f9af84a72..93660b016ee 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs_analysis.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs_analysis.c @@ -249,10 +249,12 @@ llvmpipe_nir_fn_is_linear_compat(const struct nir_shader *shader, } tex_info->sampler_unit = tex->sampler_index; + tex_info->texture_unit = tex->texture_index; /* this is enforced in the scanner previously. */ - tex_info->coord[0].file = TGSI_FILE_INPUT; - tex_info->coord[1].file = TGSI_FILE_INPUT; + tex_info->coord[0].file = TGSI_FILE_INPUT; // S + tex_info->coord[0].swizzle = 0; + tex_info->coord[1].file = TGSI_FILE_INPUT; // T tex_info->coord[1].swizzle = 1; info->num_texs++; break;