Mesa (master): iris: Enable fast clears on gen8.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 2 22:28:54 UTC 2019


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

Author: Rafael Antognolli <rafael.antognolli at intel.com>
Date:   Tue Mar 26 15:35:00 2019 -0700

iris: Enable fast clears on gen8.

Since we are now properly storing the clear color with SCS bits, we can
now enable fast clears on gen8 too.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/gallium/drivers/iris/iris_clear.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/gallium/drivers/iris/iris_clear.c b/src/gallium/drivers/iris/iris_clear.c
index 3a617bb7e21..6e0a569e7b0 100644
--- a/src/gallium/drivers/iris/iris_clear.c
+++ b/src/gallium/drivers/iris/iris_clear.c
@@ -78,8 +78,7 @@ can_fast_clear_color(struct iris_context *ice,
    struct iris_batch *batch = &ice->batches[IRIS_BATCH_RENDER];
    const struct gen_device_info *devinfo = &batch->screen->devinfo;
 
-   /* XXX: Need to fix channel select for gen8 before enabling this. */
-   if (devinfo->gen != 9)
+   if (devinfo->gen > 9)
       return false;
 
    if (res->aux.usage == ISL_AUX_USAGE_NONE)




More information about the mesa-commit mailing list