Mesa (master): ir3: Remove VARYING_SLOT_PNTC remapping hack
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Apr 25 16:09:55 UTC 2020
Module: Mesa
Branch: master
Commit: 180f98678f4329355a3abc8c1dc060b76b5afa15
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=180f98678f4329355a3abc8c1dc060b76b5afa15
Author: Connor Abbott <cwabbott0 at gmail.com>
Date: Thu Apr 23 16:23:18 2020 +0200
ir3: Remove VARYING_SLOT_PNTC remapping hack
The st now does this for us.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4732>
---
src/freedreno/ir3/ir3_compiler_nir.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c
index c6ed65550a0..1ada43f4ea6 100644
--- a/src/freedreno/ir3/ir3_compiler_nir.c
+++ b/src/freedreno/ir3/ir3_compiler_nir.c
@@ -2969,18 +2969,6 @@ setup_input(struct ir3_context *ctx, nir_variable *in)
if (slot == VARYING_SLOT_POS) {
ir3_context_error(ctx, "fragcoord should be a sysval!\n");
- } else if (slot == VARYING_SLOT_PNTC) {
- /* see for example st_nir_fixup_varying_slots().. this is
- * maybe a bit mesa/st specific. But we need things to line
- * up for this in fdN_program:
- * unsigned texmask = 1 << (slot - VARYING_SLOT_VAR0);
- * if (emit->sprite_coord_enable & texmask) {
- * ...
- * }
- */
- so->inputs[n].slot = VARYING_SLOT_VAR8;
- so->inputs[n].bary = true;
- instr = create_frag_input(ctx, false, idx);
} else {
/* detect the special case for front/back colors where
* we need to do flat vs smooth shading depending on
More information about the mesa-commit
mailing list