Module: Mesa
Branch: master
Commit: e6d8b4090f72f96485ee1589c114d9cf1e6f9db4
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e6d8b4090f72f96485ee1589c114d9cf1e6f9db4

Author: Brian Paul <[email protected]>
Date:   Fri May 28 13:31:23 2010 -0600

llvmpipe: add PIPE_BUFFER to assertion

Fixes regression from commit f2e05acac931889e0820e1cc5d7ea810048a6b5f.

---

 src/gallium/drivers/llvmpipe/lp_screen.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c 
b/src/gallium/drivers/llvmpipe/lp_screen.c
index cedc08e..34ad298 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -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);

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to