From bad6fc48712b761351bdd63e92859456a225d53e Mon Sep 17 00:00:00 2001 From: Icecream95 Date: Tue, 24 Mar 2020 12:42:42 +1300 Subject: [PATCH] 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: --- src/gallium/drivers/panfrost/pan_screen.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.30.2