diff options
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_screen.c')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_screen.c | 8 |
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) |