panfrost: Handle Z24 textures
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 18 Jul 2019 00:39:34 +0000 (17:39 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 18 Jul 2019 17:42:43 +0000 (10:42 -0700)
Just use the Z32 code.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_format.c

index d5039d438a3e9c740f834b90ebc5fd4147e5afdf..7c94596ec76b42a628bc43093bbdcc0812308ac9 100644 (file)
@@ -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: