From 5f7df5df0d8410925edcfb926509f6b17ef6b619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Wed, 28 Jul 2021 10:33:50 +0300 Subject: [PATCH] crocus: disable depth and d+s formats with memory objects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is similar to i965 commit ba11f673a24, we set depth and d+s formats unsupported for now. Signed-off-by: Tapani Pälli Reviewed-by: Nanley Chery Part-of: --- src/gallium/drivers/crocus/crocus_resource.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/crocus/crocus_resource.c b/src/gallium/drivers/crocus/crocus_resource.c index 5e234fd7013..a01703e9946 100644 --- a/src/gallium/drivers/crocus/crocus_resource.c +++ b/src/gallium/drivers/crocus/crocus_resource.c @@ -891,6 +891,10 @@ crocus_resource_from_memobj(struct pipe_screen *pscreen, if (!res) return NULL; + /* Disable Depth, and combined Depth+Stencil for now. */ + if (util_format_has_depth(util_format_description(templ->format))) + return NULL; + if (templ->flags & PIPE_RESOURCE_FLAG_TEXTURING_MORE_LIKELY) { UNUSED const bool isl_surf_created_successfully = crocus_resource_configure_main(screen, res, templ, DRM_FORMAT_MOD_INVALID, 0);