summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-06-20 10:45:17 -0600
committerBrian Paul <[email protected]>2011-09-22 08:26:36 -0600
commit379353e16b6666da5833a59cff07785aaca82473 (patch)
tree37d36f31b86cdbda6c6d2ff824dc294a86d53d6a /src/gallium
parent1a35fde7c8571c999147bdaeed462b294a86923a (diff)
svga: skip assertion when index_bias < 0
See bug 688383
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/svga/svga_draw.c2
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 aa096692888..1881dbd6310 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);
}