projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de2ef04
)
program: Remove variable used only in assert().
author
Matt Turner
<mattst88@gmail.com>
Wed, 2 Mar 2016 19:00:31 +0000
(11:00 -0800)
committer
Matt Turner
<mattst88@gmail.com>
Wed, 2 Mar 2016 20:15:58 +0000
(12:15 -0800)
src/mesa/program/prog_optimize.c
patch
|
blob
|
history
diff --git
a/src/mesa/program/prog_optimize.c
b/src/mesa/program/prog_optimize.c
index c6d22644419cec78fb46de9d51fb6ca0d11cab11..401f26ec0d068d3cbe44cd8714736c1944ea387d 100644
(file)
--- a/
src/mesa/program/prog_optimize.c
+++ b/
src/mesa/program/prog_optimize.c
@@
-289,8
+289,7
@@
_mesa_remove_dead_code_global(struct gl_program *prog)
/* check dst reg */
if (inst->DstReg.File == PROGRAM_TEMPORARY) {
- const GLuint index = inst->DstReg.Index;
- assert(index < REG_ALLOCATE_MAX_PROGRAM_TEMPS);
+ assert(inst->DstReg.Index < REG_ALLOCATE_MAX_PROGRAM_TEMPS);
if (inst->DstReg.RelAddr) {
if (dbg)