summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/pan_screen.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-05-02 02:27:04 +0000
committerAlyssa Rosenzweig <[email protected]>2019-05-04 19:08:50 +0000
commit31f5a43bf0d01ea0cab54a05eadf6e6778fc570f (patch)
treefdb7a018d540d42f9dea42e2e87ace5f9ea75ca9 /src/gallium/drivers/panfrost/pan_screen.c
parentf8c7ffa07a2b938f99f656fbc4f7fe1baa9eeafe (diff)
panfrost: Support RGB565 FBOs
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_screen.c')
-rw-r--r--src/gallium/drivers/panfrost/pan_screen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c
index 4f23dd5cdf0..3af82f6ae0c 100644
--- a/src/gallium/drivers/panfrost/pan_screen.c
+++ b/src/gallium/drivers/panfrost/pan_screen.c
@@ -445,11 +445,11 @@ panfrost_is_format_supported( struct pipe_screen *screen,
return FALSE;
if (bind & PIPE_BIND_RENDER_TARGET) {
- /* We don't support rendering into anything but RGBA8 yet. We
- * need more formats for spec compliance, but for now, honesty
- * is the best policy <3 */
+ /* TODO: Support all the formats! :) */
+ bool supported = util_format_is_rgba8_variant(format_desc);
+ supported |= format == PIPE_FORMAT_B5G6R5_UNORM;
- if (!util_format_is_rgba8_variant(format_desc))
+ if (!supported)
return FALSE;
if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS)