From 2b0f77bde5687ccee31e300a58dd5e039da7b90f Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Wed, 10 Aug 2022 22:08:34 +0200 Subject: [PATCH] etnaviv: allow 3D textures with TS in transfer The resolve operation to the temporary resource properly iterates over all layers of the 3D texture, so there is no need to fail the transfer if we encounter a 3D texture that has a TS BO allocated due to previous rendering. Fixes piglit spec@arb_framebuffer_object@fbo-generatemipmap-3d Signed-off-by: Lucas Stach Reviewed-by: Christian Gmeiner Part-of: --- src/gallium/drivers/etnaviv/etnaviv_transfer.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_transfer.c b/src/gallium/drivers/etnaviv/etnaviv_transfer.c index d85196a3811..0560211b598 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_transfer.c +++ b/src/gallium/drivers/etnaviv/etnaviv_transfer.c @@ -271,12 +271,6 @@ etna_transfer_map(struct pipe_context *pctx, struct pipe_resource *prsc, return NULL; } - if (prsc->depth0 > 1 && rsc->ts_bo) { - slab_free(&ctx->transfer_pool, trans); - BUG("resource has depth >1 with tile status"); - return NULL; - } - struct pipe_resource templ = *prsc; templ.nr_samples = 0; templ.bind = PIPE_BIND_RENDER_TARGET;