projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f37b114
)
i965: Add missing "break" statement.
author
Kenneth Graunke
<kenneth@whitecape.org>
Mon, 18 Oct 2010 19:21:20 +0000
(12:21 -0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Mon, 18 Oct 2010 19:21:20 +0000
(12:21 -0700)
Otherwise, it would try to handle arrays as structures, use
uninitialized memory, and crash.
src/mesa/drivers/dri/i965/brw_fs.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_fs.cpp
b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 554ba39a0cd9b12086c846d829f61334061b8458..85fd6d06b9296757711251c2135721a1329bc81e 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/
src/mesa/drivers/dri/i965/brw_fs.cpp
@@
-941,6
+941,7
@@
fs_visitor::emit_assignment_writes(fs_reg &l, fs_reg &r,
for (unsigned int i = 0; i < type->length; i++) {
emit_assignment_writes(l, r, type->fields.array, predicated);
}
+ break;
case GLSL_TYPE_STRUCT:
for (unsigned int i = 0; i < type->length; i++) {