diff options
author | Ilia Mirkin <[email protected]> | 2016-11-27 00:46:33 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-11-30 20:36:00 -0500 |
commit | 3d837a8871e83e86da7e76ef855e8a877e8c971c (patch) | |
tree | 2552634a39e2890d9b1a34df4d2f6f907fc6ad8b /src/gallium | |
parent | 02b2efa5eb87416b48d530ceeaada039ca785539 (diff) |
swr: fix assertion for max number of so targets
The number has to be less than or equal to the max, not just less than.
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Tim Rowley <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/swr/swr_state.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp index 9f6b5b0d915..fc835dc1867 100644 --- 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( |