summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_resource.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-10-07 11:59:28 -0400
committerRob Clark <[email protected]>2016-10-07 15:50:46 -0400
commit3ebfc44b4231cfa131e17076b10140fcd70ccd8c (patch)
tree1ac1fc9f44e0f1ac65f08ece385e7dfb1cf05f08 /src/gallium/drivers/freedreno/freedreno_resource.c
parentf88f025e8c22047e4e07d3f8653b637924e7313e (diff)
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]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_resource.c')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_resource.c3
1 files changed, 3 insertions, 0 deletions
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?
*/