Mesa (main): iris: Disable the MC_CCS modifier with norbc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Oct 21 20:47:54 UTC 2021


Module: Mesa
Branch: main
Commit: b9d8793646db42a78907ca91fe6a177f9a1859eb
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b9d8793646db42a78907ca91fe6a177f9a1859eb

Author: Nanley Chery <nanley.g.chery at intel.com>
Date:   Tue Sep  7 08:08:32 2021 -0700

iris: Disable the MC_CCS modifier with norbc

We generally try to disable CCS whenever the norbc debug flag is set.
Also, this enables simplifying iris_resource_configure_aux later on.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11960>

---

 src/gallium/drivers/iris/iris_resource.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c
index df13aef8d02..cfc6ff839a5 100644
--- a/src/gallium/drivers/iris/iris_resource.c
+++ b/src/gallium/drivers/iris/iris_resource.c
@@ -110,6 +110,9 @@ modifier_is_supported(const struct intel_device_info *devinfo,
    /* Check remaining requirements. */
    switch (modifier) {
    case I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS:
+      if (INTEL_DEBUG(DEBUG_NO_RBC))
+         return false;
+
       if (pfmt != PIPE_FORMAT_BGRA8888_UNORM &&
           pfmt != PIPE_FORMAT_RGBA8888_UNORM &&
           pfmt != PIPE_FORMAT_BGRX8888_UNORM &&



More information about the mesa-commit mailing list