From cff2e08c4cb87b7c2e19100e24c336e50b9839cc Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 14 Apr 2015 21:59:46 -0700 Subject: [PATCH] vc4: Don't try to use color load/stores to do depth/stencil blits. Fixes regressions in fbo-generatemipmap-formats on depth/stencil (which does blits to work around baselevel/lastlevel). --- src/gallium/drivers/vc4/vc4_blit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/vc4/vc4_blit.c b/src/gallium/drivers/vc4/vc4_blit.c index 4f87189fd2e..3204c3df060 100644 --- a/src/gallium/drivers/vc4/vc4_blit.c +++ b/src/gallium/drivers/vc4/vc4_blit.c @@ -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; -- 2.30.2