Mesa (staging/21.2): crocus: disable depth and d+s formats with memory objects

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Aug 11 23:26:01 UTC 2021


Module: Mesa
Branch: staging/21.2
Commit: 71876890b6bd1161af1ae54f363e85bf0166baf3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=71876890b6bd1161af1ae54f363e85bf0166baf3

Author: Tapani Pälli <tapani.palli at intel.com>
Date:   Wed Jul 28 10:33:50 2021 +0300

crocus: disable depth and d+s formats with memory objects

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 at intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12330>

---

 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 08e0d3ed737..2c8ea3a6529 100644
--- a/src/gallium/drivers/crocus/crocus_resource.c
+++ b/src/gallium/drivers/crocus/crocus_resource.c
@@ -899,6 +899,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);



More information about the mesa-commit mailing list