diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-05-21 19:43:18 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-01 18:10:59 +0000 |
commit | 89a9cc764533f4cad123dc92c49e89bb181873c3 (patch) | |
tree | 8bb83f3c49908e40370d380c4330ee5afa3795e5 /src/panfrost | |
parent | 3a8e5eb1b11e5dfe42ebc4c10c291e36fbd06cb3 (diff) |
panfrost: Permit AFBC of RGB8
Ugly but hey.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5284>
Diffstat (limited to 'src/panfrost')
-rw-r--r-- | src/panfrost/encoder/pan_afbc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/panfrost/encoder/pan_afbc.c b/src/panfrost/encoder/pan_afbc.c index 26ba7489ec3..27dacabddf3 100644 --- a/src/panfrost/encoder/pan_afbc.c +++ b/src/panfrost/encoder/pan_afbc.c @@ -92,6 +92,10 @@ panfrost_format_supports_afbc(enum pipe_format format) if (util_format_is_rgba8_variant(desc)) return true; + /* Gross, but probably good enough */ + if (format == PIPE_FORMAT_R8G8B8_UNORM) + return true; + /* Only Z24S8 variants are compressible as Z/S */ if (panfrost_is_z24s8_variant(format)) |