projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e310c22
)
i965: Drop the check for duplicate _mesa_add_state_reference.
author
Eric Anholt
<eric@anholt.net>
Fri, 8 Oct 2010 05:25:35 +0000
(22:25 -0700)
committer
Eric Anholt
<eric@anholt.net>
Fri, 8 Oct 2010 17:24:29 +0000
(10:24 -0700)
_mesa_add_state_reference does that check for us anyway.
src/mesa/drivers/dri/i965/brw_wm_fp.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_wm_fp.c
b/src/mesa/drivers/dri/i965/brw_wm_fp.c
index d4d75d63d8ccc36331f587194e7bae8fed2c07df..19188a67972913dcd2b79c1becab34203a228906 100644
(file)
--- 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 );