From: Brian Paul Date: Mon, 20 Jun 2011 16:45:17 +0000 (-0600) Subject: svga: skip assertion when index_bias < 0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=379353e16b6666da5833a59cff07785aaca82473;p=mesa.git svga: skip assertion when index_bias < 0 See bug 688383 --- 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); }