Mesa (master): svga: skip assertion when index_bias < 0
Brian Paul
brianp at kemper.freedesktop.org
Thu Sep 22 14:45:11 UTC 2011
Module: Mesa
Branch: master
Commit: 379353e16b6666da5833a59cff07785aaca82473
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=379353e16b6666da5833a59cff07785aaca82473
Author: Brian Paul <brianp at vmware.com>
Date: Mon Jun 20 10:45:17 2011 -0600
svga: skip assertion when index_bias < 0
See bug 688383
---
src/gallium/drivers/svga/svga_draw.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/svga/svga_draw.c b/src/gallium/drivers/svga/svga_draw.c
index aa09669..1881dbd 100644
--- a/src/gallium/drivers/svga/svga_draw.c
+++ b/src/gallium/drivers/svga/svga_draw.c
@@ -280,7 +280,7 @@ enum pipe_error svga_hwtnl_prim( struct svga_hwtnl *hwtnl,
if (index_bias >= 0) {
assert(offset + index_bias*stride < size);
}
- if (min_index != ~0) {
+ if (min_index != ~0 && index_bias >= 0) {
assert(offset + (index_bias + min_index) * stride < size);
}
More information about the mesa-commit
mailing list