Mesa (master): llvmpipe: additional texture assertion
Brian Paul
brianp at kemper.freedesktop.org
Fri Apr 16 15:28:25 UTC 2010
Module: Mesa
Branch: master
Commit: 7d5da2370ba9497419dbd75149385dfbd081556d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d5da2370ba9497419dbd75149385dfbd081556d
Author: Brian Paul <brianp at vmware.com>
Date: Thu Apr 15 17:41:39 2010 -0600
llvmpipe: additional texture assertion
---
src/gallium/drivers/llvmpipe/lp_texture.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c
index 7e4e4d5..635ab11 100644
--- a/src/gallium/drivers/llvmpipe/lp_texture.c
+++ b/src/gallium/drivers/llvmpipe/lp_texture.c
@@ -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;
More information about the mesa-commit
mailing list