Mesa (master): freedreno: don't try to shadow layered textures

Rob Clark robclark at kemper.freedesktop.org
Fri Oct 7 19:51:34 UTC 2016


Module: Mesa
Branch: master
Commit: 3ebfc44b4231cfa131e17076b10140fcd70ccd8c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3ebfc44b4231cfa131e17076b10140fcd70ccd8c

Author: Rob Clark <robdclark at gmail.com>
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 <robdclark at gmail.com>

---

 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?
 	 */




More information about the mesa-commit mailing list