From ad214fcaf7f9581a9c315c11e8cabe19deca8504 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 20 Jul 2023 10:52:42 -0400 Subject: [PATCH] asahi: Advertise Z16_UNORM This works (on the downstream kernel, anyway). Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_pipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index 950877c..720242f 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -1969,8 +1969,8 @@ agx_is_format_supported(struct pipe_screen *pscreen, enum pipe_format format, if (usage & PIPE_BIND_DEPTH_STENCIL) { switch (format) { - /* natively supported - * TODO: we could also support Z16_UNORM */ + /* natively supported */ + case PIPE_FORMAT_Z16_UNORM: case PIPE_FORMAT_Z32_FLOAT: case PIPE_FORMAT_S8_UINT: -- 2.7.4