Mesa (master): iris: Disable fast clears when running with INTEL_DEBUG=nofc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Oct 9 21:06:08 UTC 2019
Module: Mesa
Branch: master
Commit: bb9af8abbd17f90c46fd11f13c9b83e44a5315bd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb9af8abbd17f90c46fd11f13c9b83e44a5315bd
Author: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>
Date: Mon Oct 7 17:12:14 2019 -0700
iris: Disable fast clears when running with INTEL_DEBUG=nofc
Reviewed-by: Rafael Antognolli <rafael.antognolli at intel.com>
---
src/gallium/drivers/iris/iris_clear.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/gallium/drivers/iris/iris_clear.c b/src/gallium/drivers/iris/iris_clear.c
index b71d4f2886a..3cfe3ba5ebf 100644
--- a/src/gallium/drivers/iris/iris_clear.c
+++ b/src/gallium/drivers/iris/iris_clear.c
@@ -75,6 +75,9 @@ can_fast_clear_color(struct iris_context *ice,
{
struct iris_resource *res = (void *) p_res;
+ if (INTEL_DEBUG & DEBUG_NO_FAST_CLEAR)
+ return false;
+
if (res->aux.usage == ISL_AUX_USAGE_NONE)
return false;
@@ -405,6 +408,9 @@ can_fast_clear_depth(struct iris_context *ice,
{
struct pipe_resource *p_res = (void *) res;
+ if (INTEL_DEBUG & DEBUG_NO_FAST_CLEAR)
+ return false;
+
/* Check for partial clears */
if (box->x > 0 || box->y > 0 ||
box->width < u_minify(p_res->width0, level) ||
More information about the mesa-commit
mailing list