[Mesa-dev] [PATCH v3 092/104] nir: Remove deref chain support from lower_drawpixels
Jason Ekstrand
jason at jlekstrand.net
Tue Apr 3 18:39:36 UTC 2018
---
src/compiler/nir/nir_lower_drawpixels.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/src/compiler/nir/nir_lower_drawpixels.c b/src/compiler/nir/nir_lower_drawpixels.c
index 05131af..f7ff5c0 100644
--- a/src/compiler/nir/nir_lower_drawpixels.c
+++ b/src/compiler/nir/nir_lower_drawpixels.c
@@ -225,19 +225,6 @@ lower_drawpixels_block(lower_drawpixels_state *state, nir_block *block)
assert(deref->deref_type == nir_deref_type_var);
lower_texcoord(state, intr);
}
- } else if (intr->intrinsic == nir_intrinsic_load_var) {
- nir_deref_var *dvar = intr->variables[0];
- nir_variable *var = dvar->var;
-
- if (var->data.location == VARYING_SLOT_COL0) {
- /* gl_Color should not have array/struct derefs: */
- assert(dvar->deref.child == NULL);
- lower_color(state, intr);
- } else if (var->data.location == VARYING_SLOT_TEX0) {
- /* gl_TexCoord should not have array/struct derefs: */
- assert(dvar->deref.child == NULL);
- lower_texcoord(state, intr);
- }
}
}
}
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list