[Mesa-dev] [PATCH 5/6] llvmpipe: don't use 3-component formats

Brian Paul brianp at vmware.com
Tue Jun 7 19:03:42 UTC 2016


See earlier for comment for softpipe (same story).
Note that we were not supporting 3-component formats for render
targets before, now we don't for textures either.
---
 src/gallium/drivers/llvmpipe/lp_screen.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index f2a12a0..50a6513 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -450,7 +450,10 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
       if (!format_desc->is_array && !format_desc->is_bitmask &&
           format != PIPE_FORMAT_R11G11B10_FLOAT)
          return FALSE;
+   }
 
+   if ((bind & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_SAMPLER_VIEW)) &&
+       ((bind & PIPE_BIND_DISPLAY_TARGET) == 0)) {
       /*
        * XXX refuse formats known to crash in generate_unswizzled_blend().
        * These include all 3-channel 24bit RGB8 variants, plus 48bit
-- 
1.9.1



More information about the mesa-dev mailing list