iris: Disable fast clears when running with INTEL_DEBUG=nofc
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 8 Oct 2019 00:12:14 +0000 (17:12 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 9 Oct 2019 20:29:26 +0000 (13:29 -0700)
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/gallium/drivers/iris/iris_clear.c

index b71d4f2..3cfe3ba 100644 (file)
@@ -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) ||