Mesa (main): iris: Allow GPU-based uploads of ASTC textures
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Nov 30 14:06:56 UTC 2021
Module: Mesa
Branch: main
Commit: 8171535c457981c72d0bd91b5ad1eda4515ccad5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8171535c457981c72d0bd91b5ad1eda4515ccad5
Author: Nanley Chery <nanley.g.chery at intel.com>
Date: Fri Nov 12 09:45:02 2021 -0500
iris: Allow GPU-based uploads of ASTC textures
ISL recently started allowing linear ASTC surfaces to be created. With
that in place, iris can perform GPU-based uploads to ASTC textures in
the same way it does so with other compressed surfaces.
We're not aware of any reason to continue special-casing ASTC texture
uploads, so we get rid of the code which does so.
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13881>
---
src/gallium/drivers/iris/iris_resource.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c
index bf8d7bc8fbb..218ea85b7a7 100644
--- a/src/gallium/drivers/iris/iris_resource.c
+++ b/src/gallium/drivers/iris/iris_resource.c
@@ -2280,11 +2280,6 @@ iris_transfer_map(struct pipe_context *ctx,
usage |= PIPE_MAP_DIRECTLY;
}
- const struct isl_format_layout *fmtl =
- isl_format_get_layout(surf->format);
- if (fmtl->txc == ISL_TXC_ASTC)
- usage |= PIPE_MAP_DIRECTLY;
-
/* We can map directly if it wouldn't stall, there's no compression,
* and we aren't doing an uncached read.
*/
More information about the mesa-commit
mailing list