i965: Remove an unneeded render_cache_set_check_flush
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 25 May 2017 19:14:52 +0000 (12:14 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 8 Jun 2017 05:18:53 +0000 (22:18 -0700)
This is only needed to fix rendering corruptions caused by not flushing
after doing a resolve operation.  The resolve now does all the needed
flushing so this is unnecessary.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Chad Versace <chadversary@chromium.org>
src/mesa/drivers/dri/i965/brw_context.c

index 33b13a4cf097638c768de11f8665476ff7df8377..0ef22c8b0afd8dc2fe0e6db700c38ddf29d32d05 100644 (file)
@@ -284,12 +284,12 @@ intel_update_state(struct gl_context * ctx, GLuint new_state)
          const struct intel_renderbuffer *irb =
             intel_renderbuffer(fb->_ColorDrawBuffers[i]);
 
-         if (irb &&
+         if (irb) {
              intel_miptree_resolve_color(brw, irb->mt,
                                          irb->mt_level, 1,
                                          irb->mt_layer, irb->layer_count,
-                                         INTEL_MIPTREE_IGNORE_CCS_E))
-            brw_render_cache_set_check_flush(brw, irb->mt->bo);
+                                         INTEL_MIPTREE_IGNORE_CCS_E);
+         }
       }
    }