From 1bced0fad2feeca34ef9d2a2d28b05e234d25e36 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 17 Jul 2019 17:39:34 -0700 Subject: [PATCH] panfrost: Handle Z24 textures Just use the Z32 code. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_format.c b/src/gallium/drivers/panfrost/pan_format.c index d5039d438a3..7c94596ec76 100644 --- a/src/gallium/drivers/panfrost/pan_format.c +++ b/src/gallium/drivers/panfrost/pan_format.c @@ -176,8 +176,8 @@ panfrost_find_format(const struct util_format_description *desc) { case PIPE_FORMAT_B10G10R10A2_UINT: return MALI_RGB10_A2UI; - /* TODO: ZS isn't really special case */ case PIPE_FORMAT_Z32_UNORM: + case PIPE_FORMAT_Z24X8_UNORM: return MALI_Z32_UNORM; case PIPE_FORMAT_B5G6R5_UNORM: -- 2.30.2