OSDN Git Service

svga: skip assertion when index_bias < 0
authorBrian Paul <brianp@vmware.com>
Mon, 20 Jun 2011 16:45:17 +0000 (10:45 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 22 Sep 2011 14:26:36 +0000 (08:26 -0600)
See bug 688383

src/gallium/drivers/svga/svga_draw.c

index aa09669..1881dbd 100644 (file)
@@ -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);
          }