crocus: disable depth and d+s formats with memory objects
authorTapani Pälli <tapani.palli@intel.com>
Wed, 28 Jul 2021 07:33:50 +0000 (10:33 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 9 Aug 2021 02:38:50 +0000 (05:38 +0300)
This is similar to i965 commit ba11f673a24, we set depth and
d+s formats unsupported for now.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10609>

src/gallium/drivers/crocus/crocus_resource.c

index 5e234fd..a01703e 100644 (file)
@@ -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);