summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-04-14 22:01:55 -0700
committerEric Anholt <[email protected]>2015-04-15 16:50:23 -0700
commitb229e6c7dee2bb6b1736d6867790dfcd1c50f623 (patch)
tree303098283a14e6c52a0f0581e3fc49a5d7a80d91 /src
parentcff2e08c4cb87b7c2e19100e24c336e50b9839cc (diff)
vc4: Don't try to use color load/stores to blit across format changes.
We could potentially support the right combination of 8888 to 565, but the important thing for now is to not mix up our orderings of 8888. Fixes fbo-copyteximage regressions.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/vc4/vc4_blit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_blit.c b/src/gallium/drivers/vc4/vc4_blit.c
index 3204c3df060..2d524c40b4d 100644
--- a/src/gallium/drivers/vc4/vc4_blit.c
+++ b/src/gallium/drivers/vc4/vc4_blit.c
@@ -138,6 +138,9 @@ vc4_tile_blit(struct pipe_context *pctx, const struct pipe_blit_info *info)
return false;
}
+ if (info->dst.resource->format != info->src.resource->format)
+ return false;
+
struct vc4_surface *dst_surf =
vc4_get_blit_surface(pctx, info->dst.resource, info->dst.level);
struct vc4_surface *src_surf =