From dbceabed72977ffd49d84f926c59ff97554f349d Mon Sep 17 00:00:00 2001 From: Vasily Khoruzhick Date: Sat, 14 Mar 2020 16:33:00 -0700 Subject: [PATCH] lima: disable Z16 format Unfortunately we don't know how to reload Z16 buffers yet and blob is using Z24 for dEQP tests that need depth reload. Reviewed-by: Icenowy Zheng Reviewed-by: Andreas Baierl Signed-off-by: Vasily Khoruzhick Part-of: --- src/gallium/drivers/lima/lima_format.c | 2 -- src/gallium/drivers/lima/lima_screen.c | 1 - 2 files changed, 3 deletions(-) diff --git a/src/gallium/drivers/lima/lima_format.c b/src/gallium/drivers/lima/lima_format.c index 126a9a5c59c..5fe7e406b31 100644 --- a/src/gallium/drivers/lima/lima_format.c +++ b/src/gallium/drivers/lima/lima_format.c @@ -83,8 +83,6 @@ static const struct lima_format lima_format_table[] = { LIMA_FORMAT(B4G4R4A4_UNORM, BGRA_4444, B4G4R4A4, false, 0x8444), LIMA_FORMAT(Z24_UNORM_S8_UINT, Z24S8, Z24S8, false, 0x0000), LIMA_FORMAT(Z24X8_UNORM, Z24S8, Z24S8, false, 0x0000), - /* Blob uses L16 for Z16 */ - LIMA_FORMAT(Z16_UNORM, L16, Z16, false, 0x0000), LIMA_FORMAT(L16_UNORM, L16, NONE, false, 0x0000), LIMA_FORMAT(L8_UNORM, L8, NONE, false, 0x0000), LIMA_FORMAT(A16_UNORM, A16, NONE, false, 0x0000), diff --git a/src/gallium/drivers/lima/lima_screen.c b/src/gallium/drivers/lima/lima_screen.c index 16c9fefcf04..1a6ff22dc44 100644 --- a/src/gallium/drivers/lima/lima_screen.c +++ b/src/gallium/drivers/lima/lima_screen.c @@ -312,7 +312,6 @@ lima_screen_is_format_supported(struct pipe_screen *pscreen, if (usage & PIPE_BIND_DEPTH_STENCIL) { switch (format) { - case PIPE_FORMAT_Z16_UNORM: case PIPE_FORMAT_Z24_UNORM_S8_UINT: case PIPE_FORMAT_Z24X8_UNORM: break; -- 2.30.2