Module: Mesa Branch: master Commit: 3ebfc44b4231cfa131e17076b10140fcd70ccd8c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3ebfc44b4231cfa131e17076b10140fcd70ccd8c
Author: Rob Clark <[email protected]> Date: Fri Oct 7 11:59:28 2016 -0400 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 <[email protected]> --- 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 addfc40..5a21ca4 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? */ _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
