Mesa (master): freedreno/ir3: fix flat shading again

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Dec 24 17:33:39 UTC 2019


Module: Mesa
Branch: master
Commit: 0c3206379403c5b7242c65695b10abe607b4a19a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c3206379403c5b7242c65695b10abe607b4a19a

Author: Rob Clark <robdclark at chromium.org>
Date:   Fri Dec 20 13:06:11 2019 -0800

freedreno/ir3: fix flat shading again

These days `ctx->inputs` is the split scalar input components and
`ir->inputs` is the full vecN.  This got fixed in the load_input case,
but the load_interpolated_input case was missed.

Fixes: bdf6b7018ce ("freedreno/ir3: re-work shader inputs/outputs")
Signed-off-by: Rob Clark <robdclark at chromium.org>

---

 src/freedreno/ir3/ir3_compiler_nir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c
index 7bbfe40dc91..133388a3a80 100644
--- a/src/freedreno/ir3/ir3_compiler_nir.c
+++ b/src/freedreno/ir3/ir3_compiler_nir.c
@@ -1536,7 +1536,7 @@ emit_intrinsic(struct ir3_context *ctx, nir_intrinsic_instr *intr)
 					 * that is easier than mapping things back to a
 					 * nir_variable to figure out what it is.
 					 */
-					dst[i] = ctx->ir->inputs[inloc];
+					dst[i] = ctx->inputs[inloc];
 				}
 			}
 		} else {




More information about the mesa-commit mailing list