Mesa (master): iris: Create resource with aux_usage MCS_CCS

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Oct 28 21:03:03 UTC 2019


Module: Mesa
Branch: master
Commit: 3ac688b0c2ee1b65418fa002706be663b2d070ae
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3ac688b0c2ee1b65418fa002706be663b2d070ae

Author: Sagar Ghuge <sagar.ghuge at intel.com>
Date:   Wed Sep 18 13:14:31 2019 -0700

iris: Create resource with aux_usage MCS_CCS

Signed-off-by: Sagar Ghuge <sagar.ghuge at intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery at intel.com>

---

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

diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c
index 0050d2615d6..952145aad7e 100644
--- a/src/gallium/drivers/iris/iris_resource.c
+++ b/src/gallium/drivers/iris/iris_resource.c
@@ -476,7 +476,8 @@ iris_resource_configure_aux(struct iris_screen *screen,
       /* Only allow a CCS modifier if the aux was created successfully. */
       res->aux.possible_usages |= 1 << res->mod_info->aux_usage;
    } else if (has_mcs) {
-      res->aux.possible_usages |= 1 << ISL_AUX_USAGE_MCS;
+      res->aux.possible_usages |=
+         1 << (has_ccs ? ISL_AUX_USAGE_MCS_CCS : ISL_AUX_USAGE_MCS);
    } else if (has_hiz) {
       res->aux.possible_usages |=
          1 << (has_ccs ? ISL_AUX_USAGE_HIZ_CCS : ISL_AUX_USAGE_HIZ);




More information about the mesa-commit mailing list