vc4: Don't try to use color load/stores to do depth/stencil blits.
authorEric Anholt <eric@anholt.net>
Wed, 15 Apr 2015 04:59:46 +0000 (21:59 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 15 Apr 2015 23:50:23 +0000 (16:50 -0700)
Fixes regressions in fbo-generatemipmap-formats on depth/stencil (which
does blits to work around baselevel/lastlevel).

src/gallium/drivers/vc4/vc4_blit.c

index 4f87189fd2e29d5817278fd5806d988fde7c9da5..3204c3df0606f1a07b17536940e9ad0dd58703f0 100644 (file)
@@ -125,6 +125,9 @@ vc4_tile_blit(struct pipe_context *pctx, const struct pipe_blit_info *info)
 {
         struct vc4_context *vc4 = vc4_context(pctx);
 
+        if (util_format_is_depth_or_stencil(info->dst.resource->format))
+                return false;
+
         if ((info->mask & PIPE_MASK_RGBA) == 0)
                 return false;