From: Icecream95 Date: Mon, 23 Mar 2020 23:42:42 +0000 (+1300) Subject: panfrost: Mark 64-bit formats as unsupported X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bad6fc48712b761351bdd63e92859456a225d53e;p=mesa.git panfrost: Mark 64-bit formats as unsupported There is no hardware support for these formats, but some games use them for vertex data. This fixes a crash in Aleph One. Reviewed-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index 58a4e6d06cc..72156cb1b67 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -488,6 +488,9 @@ panfrost_is_format_supported( struct pipe_screen *screen, return false; } + if (format_desc->channel[0].size > 32) + return false; + /* Internally, formats that are depth/stencil renderable are limited. * * In particular: Z16, Z24, Z24S8, S8 are all identical from the GPU