summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_screen.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-05-28 13:30:21 -0600
committerBrian Paul <brianp@vmware.com>2010-05-28 13:30:24 -0600
commitf57edc58b52605ed3c98f8af91412e3302bbf444 (patch)
tree84344781ff875e190666a4d1817c064d0594ae53 /src/gallium/drivers/softpipe/sp_screen.c
parent151b3bb3af722f0e14e209171acc2239d3cf2817 (diff)
softpipe: add PIPE_BUFFER to assertion
Fixes regression from commit f2e05acac931889e0820e1cc5d7ea810048a6b5f.
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_screen.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c
index 73987c913e..bad5702852 100644
--- a/src/gallium/drivers/softpipe/sp_screen.c
+++ b/src/gallium/drivers/softpipe/sp_screen.c
@@ -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);