Mesa (master): i965: Drop the check for duplicate _mesa_add_state_reference .

Eric Anholt anholt at kemper.freedesktop.org
Fri Oct 8 17:25:39 UTC 2010


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

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Oct  7 22:25:35 2010 -0700

i965: Drop the check for duplicate _mesa_add_state_reference.

_mesa_add_state_reference does that check for us anyway.

---

 src/mesa/drivers/dri/i965/brw_wm_fp.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_wm_fp.c b/src/mesa/drivers/dri/i965/brw_wm_fp.c
index d4d75d6..19188a6 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_fp.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_fp.c
@@ -532,12 +532,6 @@ static struct prog_src_register search_or_add_param5(struct brw_wm_compile *c,
    tokens[2] = s2;
    tokens[3] = s3;
    tokens[4] = s4;
-   
-   for (idx = 0; idx < paramList->NumParameters; idx++) {
-      if (paramList->Parameters[idx].Type == PROGRAM_STATE_VAR &&
-	  memcmp(paramList->Parameters[idx].StateIndexes, tokens, sizeof(tokens)) == 0)
-	 return src_reg(PROGRAM_STATE_VAR, idx);
-   }
 
    idx = _mesa_add_state_reference( paramList, tokens );
 




More information about the mesa-commit mailing list