Mesa (master): i965/copy_image: Use the blitter on gen5

Jason Ekstrand jekstrand at kemper.freedesktop.org
Fri May 26 23:00:54 UTC 2017


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

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Fri May 26 12:23:05 2017 -0700

i965/copy_image: Use the blitter on gen5

This was just an accidental typo in the refactoring.  The intention was
to try the blitter on gen4-5, not just gen4.

Reviewed-by: Matt Turner <mattst88 at gmail.com>

---

 src/mesa/drivers/dri/i965/intel_copy_image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/intel_copy_image.c b/src/mesa/drivers/dri/i965/intel_copy_image.c
index b593c3c0ed..2ebd8d7528 100644
--- a/src/mesa/drivers/dri/i965/intel_copy_image.c
+++ b/src/mesa/drivers/dri/i965/intel_copy_image.c
@@ -42,7 +42,7 @@ copy_miptrees(struct brw_context *brw,
               int dst_x, int dst_y, int dst_z, unsigned dst_level,
               int src_width, int src_height)
 {
-   if (brw->gen < 5) {
+   if (brw->gen <= 5) {
       /* On gen4-5, try BLT first.
        *
        * Gen4-5 have a single ring for both 3D and BLT operations, so there's




More information about the mesa-commit mailing list