From: Rob Clark Date: Fri, 7 Oct 2016 15:59:28 +0000 (-0400) Subject: freedreno: don't try to shadow layered textures X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ebfc44b4231cfa131e17076b10140fcd70ccd8c;p=mesa.git 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 --- 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? */