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

src/gallium/drivers/softpipe/sp_screen.c

index 73987c913e5d4367a0170d8622afa694afce795b..bad57028526297875cf22bed7499c17b21e7046e 100644 (file)
@@ -187,7 +187,8 @@ softpipe_is_format_supported( struct pipe_screen *screen,
    struct sw_winsys *winsys = softpipe_screen(screen)->winsys;
    const struct util_format_description *format_desc;
 
-   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);