projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0547182
)
mesa: TGSI translation of multiple render targets.
author
José Fonseca
<jfonseca@vmware.com>
Wed, 15 Apr 2009 19:07:48 +0000
(20:07 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Wed, 15 Apr 2009 19:08:33 +0000
(20:08 +0100)
src/mesa/state_tracker/st_program.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_program.c
b/src/mesa/state_tracker/st_program.c
index
6348e83
..
2795570
100644
(file)
--- a/
src/mesa/state_tracker/st_program.c
+++ b/
src/mesa/state_tracker/st_program.c
@@
-484,14
+484,14
@@
st_translate_fragment_program(struct st_context *st,
/* handled above */
assert(0);
break;
- case FRAG_RESULT_COLOR:
+ default:
+ assert(attr == FRAG_RESULT_COLOR ||
+ (FRAG_RESULT_DATA0 <= attr && attr < FRAG_RESULT_MAX));
fs_output_semantic_name[fs_num_outputs] = TGSI_SEMANTIC_COLOR;
fs_output_semantic_index[fs_num_outputs] = numColors;
outputMapping[attr] = fs_num_outputs;
numColors++;
break;
- default:
- assert(0);
}
output_flags[fs_num_outputs] = stfp->Base.Base.OutputFlags[attr];