llvmpipe: add PIPE_BUFFER to assertion
authorBrian Paul <brianp@vmware.com>
Fri, 28 May 2010 19:31:23 +0000 (13:31 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 28 May 2010 19:31:23 +0000 (13:31 -0600)
Fixes regression from commit f2e05acac931889e0820e1cc5d7ea810048a6b5f.

src/gallium/drivers/llvmpipe/lp_screen.c

index cedc08e..34ad298 100644 (file)
@@ -218,7 +218,8 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
    if (!format_desc)
       return FALSE;
 
-   assert(target == PIPE_TEXTURE_1D ||
+   assert(target == PIPE_BUFFER ||
+          target == PIPE_TEXTURE_1D ||
           target == PIPE_TEXTURE_2D ||
           target == PIPE_TEXTURE_3D ||
           target == PIPE_TEXTURE_CUBE);