i965: Fix condition to use Y tiling in blitter in intel_miptree_create()
authorAnuj Phogat <anuj.phogat@gmail.com>
Tue, 17 Feb 2015 18:40:58 +0000 (10:40 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Wed, 25 Feb 2015 22:11:32 +0000 (14:11 -0800)
Y tiling is supported in blitter on SNB+.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Neil Roberts <neil@linux.intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index e085841b48dcdc679bd08acb54bd4f0c91e13f55..66e7c639ef724608ae0e2839fdc307e9b63090d0 100644 (file)
@@ -649,10 +649,10 @@ intel_miptree_create(struct brw_context *brw,
    mt->pitch = pitch;
 
    /* If the BO is too large to fit in the aperture, we need to use the
-    * BLT engine to support it.  The BLT paths can't currently handle Y-tiling,
-    * so we need to fall back to X.
+    * BLT engine to support it.  Prior to Sandybridge, the BLT paths can't
+    * handle Y-tiling, so we need to fall back to X.
     */
-   if (y_or_x && mt->bo->size >= brw->max_gtt_map_object_size) {
+   if (brw->gen < 6 && y_or_x && mt->bo->size >= brw->max_gtt_map_object_size) {
       perf_debug("%dx%d miptree larger than aperture; falling back to X-tiled\n",
                  mt->total_width, mt->total_height);