[Mesa-dev] [PATCH 4/5] swr: fix assertion for max number of so targets
Rowley, Timothy O
timothy.o.rowley at intel.com
Wed Nov 30 23:21:57 UTC 2016
Reviewed-by: Tim Rowley <timothy.o.rowley at intel.com<mailto:timothy.o.rowley at intel.com>>
On Nov 29, 2016, at 8:23 PM, Ilia Mirkin <imirkin at alum.mit.edu<mailto:imirkin at alum.mit.edu>> wrote:
The number has to be less than or equal to the max, not just less than.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu<mailto:imirkin at alum.mit.edu>>
---
src/gallium/drivers/swr/swr_state.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp
index 9f6b5b0..fc835dc 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(
--
2.7.3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161130/e44b0fb3/attachment.html>
More information about the mesa-dev
mailing list