diff options
author | Eric Anholt <[email protected]> | 2014-04-25 11:19:05 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-05-01 15:12:26 -0700 |
commit | ea2cac01e875a9953496c03057480fc3bf7fbc0e (patch) | |
tree | d5cf3359ce81816fd70ad8466abff2fc065ed64c /src/mesa | |
parent | 65e025f99ce55f9679f009b5a6d3a9ca94ff561e (diff) |
i965: Fix another broken offset-aligned-to-tile test.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_screen.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 0a82f1fa736..778d5008503 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -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"); |