aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2020-02-27 10:24:49 -0800
committerKristian H. Kristensen <[email protected]>2020-05-06 17:11:34 -0700
commite8cdf125112934b589d9682239e46bf196bd9de1 (patch)
treef6b55aad2b570e9d73ecdd15054d417e9ab521f5
parent193560c44bfe35655a111870773a8ff5f08ee5dd (diff)
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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4868>
-rw-r--r--src/gallium/drivers/freedreno/a6xx/fd6_blitter.c3
1 files changed, 3 insertions, 0 deletions
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: