radeonsi: handle PIPE_BIND_BLENDABLE
authorMarek Olšák <marek.olsak@amd.com>
Sat, 23 Aug 2014 09:19:29 +0000 (11:19 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 25 Aug 2014 11:12:24 +0000 (13:12 +0200)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_state.c

index 571c487ed5033f1e5928a5d1ca384fb68967668c..6fcb14b6e945d16075939b71c3287863e596e613 100644 (file)
@@ -1532,13 +1532,17 @@ boolean si_is_format_supported(struct pipe_screen *screen,
        if ((usage & (PIPE_BIND_RENDER_TARGET |
                      PIPE_BIND_DISPLAY_TARGET |
                      PIPE_BIND_SCANOUT |
-                     PIPE_BIND_SHARED)) &&
+                     PIPE_BIND_SHARED |
+                     PIPE_BIND_BLENDABLE)) &&
            si_is_colorbuffer_format_supported(format)) {
                retval |= usage &
                          (PIPE_BIND_RENDER_TARGET |
                           PIPE_BIND_DISPLAY_TARGET |
                           PIPE_BIND_SCANOUT |
                           PIPE_BIND_SHARED);
+               if (!util_format_is_pure_integer(format) &&
+                   !util_format_is_depth_or_stencil(format))
+                       retval |= usage & PIPE_BIND_BLENDABLE;
        }
 
        if ((usage & PIPE_BIND_DEPTH_STENCIL) &&