Mesa (master): freedreno/a6xx: enable tiled compressed textures

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu May 7 00:34:54 UTC 2020


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

Author: Rob Clark <robdclark at chromium.org>
Date:   Thu Feb 27 10:24:49 2020 -0800

freedreno/a6xx: enable tiled compressed textures

I wasn't expecting this to be too useful, since compressed textures are
already block based.. but gfxbench gl_fill says otherwise.

Signed-off-by: Rob Clark <robdclark at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4868>

---

 src/gallium/drivers/freedreno/a6xx/fd6_blitter.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c b/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c
index ce423af3684..dc5b096597f 100644
--- a/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c
+++ b/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c
@@ -61,6 +61,9 @@ ok_format(enum pipe_format pfmt)
 {
 	enum a6xx_format fmt = fd6_pipe2color(pfmt);
 
+	if (util_format_is_compressed(pfmt))
+		return true;
+
 	switch (pfmt) {
 	case PIPE_FORMAT_Z24_UNORM_S8_UINT:
 	case PIPE_FORMAT_Z24X8_UNORM:



More information about the mesa-commit mailing list