projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02b2efa
)
swr: fix assertion for max number of so targets
author
Ilia Mirkin
<imirkin@alum.mit.edu>
Sun, 27 Nov 2016 05:46:33 +0000
(
00:46
-0500)
committer
Ilia Mirkin
<imirkin@alum.mit.edu>
Thu, 1 Dec 2016 01:36:00 +0000
(20:36 -0500)
The number has to be less than or equal to the max, not just less than.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/swr_state.cpp
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/swr/swr_state.cpp
b/src/gallium/drivers/swr/swr_state.cpp
index 9f6b5b0d9153f64efa828223741839a0e24918e0..fc835dc1867a776c2fe7b953bf49c375ac249fb6 100644
(file)
--- a/
src/gallium/drivers/swr/swr_state.cpp
+++ b/
src/gallium/drivers/swr/swr_state.cpp
@@
-1570,7
+1570,7
@@
swr_set_so_targets(struct pipe_context *pipe,
struct swr_context *swr = swr_context(pipe);
uint32_t i;
- assert(num_targets < MAX_SO_STREAMS);
+ assert(num_targets <
=
MAX_SO_STREAMS);
for (i = 0; i < num_targets; i++) {
pipe_so_target_reference(