From 3ebfc44b4231cfa131e17076b10140fcd70ccd8c Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Fri, 7 Oct 2016 11:59:28 -0400 Subject: [PATCH] freedreno: don't try to shadow layered textures We will only hit this with multi-planar YUV external images, so we would probably never hit this code path in the first place. But if we did, it wouldn't do the right thing so just bail. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/freedreno_resource.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index addfc405695..5a21ca44e30 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -133,6 +133,9 @@ fd_try_shadow_resource(struct fd_context *ctx, struct fd_resource *rsc, struct pipe_resource *prsc = &rsc->base.b; bool fallback = false; + if (prsc->next) + return false; + /* TODO: somehow munge dimensions and format to copy unsupported * render target format to something that is supported? */ -- 2.30.2