Module: Mesa
Branch: main
Commit: 2b0f77bde5687ccee31e300a58dd5e039da7b90f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2b0f77bde5687ccee31e300a58dd5e039da7b90f

Author: Lucas Stach <[email protected]>
Date:   Wed Aug 10 22:08:34 2022 +0200

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 <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17996>

---

 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;

Reply via email to