summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_texture.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-04-15 17:41:39 -0600
committerBrian Paul <brianp@vmware.com>2010-04-16 09:27:58 -0600
commit7d5da2370ba9497419dbd75149385dfbd081556d (patch)
tree7acb00b30b4be368b2b7d82fc55543c5aaccda04 /src/gallium/drivers/llvmpipe/lp_texture.c
parent8ba14fab9a8fb4b7e7224062693ab4d487a138b8 (diff)
llvmpipe: additional texture assertion
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_texture.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_texture.c4
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 7e4e4d5f0b..635ab11c11 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;