[Mesa-dev] [PATCH 20/30] i965: Remove an unneeded render_cache_set_check_flush

Jason Ekstrand jason at jlekstrand.net
Fri May 26 23:30:24 UTC 2017


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.
---
 src/mesa/drivers/dri/i965/brw_context.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 48e8b6c..6e60237 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -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);
+         }
       }
    }
 
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list