projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a8e5eb
)
panfrost: Permit AFBC of RGB8
author
Alyssa Rosenzweig
<alyssa.rosenzweig@collabora.com>
Thu, 21 May 2020 23:43:18 +0000
(19:43 -0400)
committer
Marge Bot
<eric+marge@anholt.net>
Mon, 1 Jun 2020 18:10:59 +0000
(18:10 +0000)
Ugly but hey.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5284>
src/panfrost/encoder/pan_afbc.c
patch
|
blob
|
history
diff --git
a/src/panfrost/encoder/pan_afbc.c
b/src/panfrost/encoder/pan_afbc.c
index 26ba7489ec3cdb32fbcc132f6a57c8e8a5579251..27dacabddf32f46aa5b5f4d50815f2ef915b271b 100644
(file)
--- 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))