Mesa (master): freedreno/a6xx: Set tfetch correctly for compressed formats
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu May 7 00:34:54 UTC 2020
Module: Mesa
Branch: master
Commit: 85f2cd84ac14be7d44eb7d5deb9b9756bd7bacc2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=85f2cd84ac14be7d44eb7d5deb9b9756bd7bacc2
Author: Kristian H. Kristensen <hoegsberg at google.com>
Date: Tue May 5 00:18:35 2020 -0700
freedreno/a6xx: Set tfetch correctly for compressed formats
The fetchsize is just the blocksize for compressed formats, which gets
rid of the ASTC special cases add handles ETC1/2 as well.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4868>
---
src/gallium/drivers/freedreno/a6xx/fd6_format.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_format.c b/src/gallium/drivers/freedreno/a6xx/fd6_format.c
index 1780fbcc941..fbb1fb960a8 100644
--- a/src/gallium/drivers/freedreno/a6xx/fd6_format.c
+++ b/src/gallium/drivers/freedreno/a6xx/fd6_format.c
@@ -378,10 +378,7 @@ fd6_pipe2fetchsize(enum pipe_format format)
if (format == PIPE_FORMAT_Z32_FLOAT_S8X24_UINT)
format = PIPE_FORMAT_Z32_FLOAT;
- if (util_format_description(format)->layout == UTIL_FORMAT_LAYOUT_ASTC)
- return TFETCH6_16_BYTE;
-
- switch (util_format_get_blocksizebits(format) / util_format_get_blockwidth(format)) {
+ switch (util_format_get_blocksizebits(format)) {
case 8: return TFETCH6_1_BYTE;
case 16: return TFETCH6_2_BYTE;
case 32: return TFETCH6_4_BYTE;
More information about the mesa-commit
mailing list