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

Author: José Fonseca <[email protected]>
Date:   Tue Nov  1 12:28:47 2011 +0000

llvmpipe: Re-advertise support for stencil formats...

"no fetch_rgba_float for uint formats" => "llvmpipe does not support uint 
formats"

"stencil == uint" => "llvmpipe does not support stencil"

---

 src/gallium/drivers/llvmpipe/lp_screen.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c 
b/src/gallium/drivers/llvmpipe/lp_screen.c
index daf1491..fb5d138 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -287,14 +287,15 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
       return FALSE;
    }
 
-   /* llvmpipe doesn't support pure integer yet */
-   if (util_format_is_pure_integer(format)) {
+   /*
+    * Everything can be supported by u_format.
+    */
+
+   if (format_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS &&
+       !format_desc->fetch_rgba_float) {
       return FALSE;
    }
 
-   /*
-    * Everything else should be supported by u_format.
-    */
    return TRUE;
 }
 

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

Reply via email to