Mesa (master): i965/gen9: Remove regions overlap check in fast copy blit

Anuj Phogat aphogat at kemper.freedesktop.org
Tue Jan 5 21:43:55 UTC 2016


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

Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Tue Nov  3 10:31:45 2015 -0800

i965/gen9: Remove regions overlap check in fast copy blit

Overlapping blits are anyway undefined in OpenGL. So no need
of overlap check here.

Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>

---

 src/mesa/drivers/dri/i965/intel_blit.c |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/intel_blit.c b/src/mesa/drivers/dri/i965/intel_blit.c
index 474a476..d4e25d8 100644
--- a/src/mesa/drivers/dri/i965/intel_blit.c
+++ b/src/mesa/drivers/dri/i965/intel_blit.c
@@ -406,11 +406,6 @@ can_fast_copy_blit(struct brw_context *brw,
    if (brw->gen < 9)
       return false;
 
-   if (src_buffer->handle == dst_buffer->handle &&
-       _mesa_regions_overlap(src_x, src_y, src_x + w, src_y + h,
-                             dst_x, dst_y, dst_x + w, dst_y + h))
-      return false;
-
    /* Enable fast copy blit only if the surfaces are Yf/Ys tiled.
     * FIXME: Based on performance data, remove this condition later to
     * enable for all types of surfaces.




More information about the mesa-commit mailing list