i965/gen9: Remove regions overlap check in fast copy blit
authorAnuj Phogat <anuj.phogat@gmail.com>
Tue, 3 Nov 2015 18:31:45 +0000 (10:31 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Tue, 5 Jan 2016 21:43:32 +0000 (13:43 -0800)
Overlapping blits are anyway undefined in OpenGL. So no need
of overlap check here.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/intel_blit.c

index 474a476c54129aa6cef1c5050af4e5cb31d70110..d4e25d89a55da1a08e9627f59d266bde0195b4db 100644 (file)
@@ -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.