llvmpipe: additional texture assertion
authorBrian Paul <brianp@vmware.com>
Thu, 15 Apr 2010 23:41:39 +0000 (17:41 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 16 Apr 2010 15:27:58 +0000 (09:27 -0600)
src/gallium/drivers/llvmpipe/lp_texture.c

index 7e4e4d5f0bef11182bf569363fa254e89d407db2..635ab11c112b17e46eb1957333b94b22bbd5892c 100644 (file)
@@ -200,6 +200,10 @@ llvmpipe_resource_create(struct pipe_screen *_screen,
          goto fail;
    }
 
+   if (resource_is_texture(&lpt->base)) {
+      assert(lpt->layout[0][0]);
+   }
+
    lpt->id = id_counter++;
 
    return &lpt->base;