[Mesa-dev] [PATCH 26/42] mesa: remove unrequired code

Timothy Arceri timothy.arceri at collabora.com
Wed Oct 19 23:09:43 UTC 2016


InterpQualifier is never set for ARB programs so this will do nothing.
---
 src/mesa/program/prog_to_nir.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c
index 2f589ce..1192207 100644
--- a/src/mesa/program/prog_to_nir.c
+++ b/src/mesa/program/prog_to_nir.c
@@ -904,8 +904,6 @@ setup_registers_and_variables(struct ptn_compile *c)
          struct gl_fragment_program *fp =
             (struct gl_fragment_program *) c->prog;
 
-         var->data.interpolation = fp->InterpQualifier[i];
-
          if (i == VARYING_SLOT_POS) {
             var->data.origin_upper_left = fp->OriginUpperLeft;
             var->data.pixel_center_integer = fp->PixelCenterInteger;
-- 
2.7.4



More information about the mesa-dev mailing list