freedreno: a2xx: add GL_AMD_compressed_ATC_texture support
authorJonathan Marek <jonathan@marek.ca>
Tue, 5 Feb 2019 16:10:46 +0000 (11:10 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 23 Apr 2019 17:11:56 +0000 (17:11 +0000)
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/freedreno/a2xx/fd2_util.c

index 0436fcf9eebde2e6227004044a41b9e107ddf268..5957a6a4df590e8ccd1ea32a4e0c14a43a818648 100644 (file)
@@ -191,6 +191,12 @@ fd2_pipe2surface(enum pipe_format format)
                return FMT_DXT2_3;
        case PIPE_FORMAT_DXT5_RGBA:
                return FMT_DXT4_5;
+       case PIPE_FORMAT_ATC_RGB:
+               return FMT_ATI_TC_555_565_RGB;
+       case PIPE_FORMAT_ATC_RGBA_EXPLICIT:
+               return FMT_ATI_TC_555_565_RGBA;
+       case PIPE_FORMAT_ATC_RGBA_INTERPOLATED:
+               return FMT_ATI_TC_555_565_RGBA_INTERP;
 
        /* YUV buffers. */
        case PIPE_FORMAT_UYVY: