i965: Fix another broken offset-aligned-to-tile test.
authorEric Anholt <eric@anholt.net>
Fri, 25 Apr 2014 18:19:05 +0000 (11:19 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 1 May 2014 22:12:26 +0000 (15:12 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/intel_screen.c

index 0a82f1fa736521e1057f3e3603137fae4fe755e7..778d5008503fdf3ba6d9c28c5eccc52ed3054fd7 100644 (file)
@@ -732,7 +732,6 @@ intel_from_planar(__DRIimage *parent, int plane, void *loaderPrivate)
 {
     int width, height, offset, stride, dri_format, index;
     struct intel_image_format *f;
-    uint32_t mask_x, mask_y;
     __DRIimage *image;
 
     if (parent == NULL || parent->planar_format == NULL)
@@ -777,8 +776,7 @@ intel_from_planar(__DRIimage *parent, int plane, void *loaderPrivate)
     image->offset = offset;
     intel_setup_image_from_dimensions(image);
 
-    intel_region_get_tile_masks(image->region, &mask_x, &mask_y, false);
-    if (offset & mask_x)
+    if (offset & 0xfff)
        _mesa_warning(NULL,
                      "intel_create_sub_image: offset not on tile boundary");