From 7d5da2370ba9497419dbd75149385dfbd081556d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 15 Apr 2010 17:41:39 -0600 Subject: llvmpipe: additional texture assertion --- src/gallium/drivers/llvmpipe/lp_texture.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3