From: Brian Paul Date: Thu, 15 Apr 2010 23:41:39 +0000 (-0600) Subject: llvmpipe: additional texture assertion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d5da2370ba9497419dbd75149385dfbd081556d;p=mesa.git llvmpipe: additional texture assertion --- diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c index 7e4e4d5f0be..635ab11c112 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;