From: Jason Ekstrand Date: Sun, 28 Aug 2016 05:44:15 +0000 (-0700) Subject: intel/blorp: Use the surface format for computing offsets X-Git-Tag: upstream/17.1.0~6471 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec7e0d62c5fe5b17e833c7ab91d0b753f0d02918;p=platform%2Fupstream%2Fmesa.git intel/blorp: Use the surface format for computing offsets If we use the view format, it may be an uncompressed view of a compressed image which throws things off. Since we're computing offsets of images, we want the actual surface offset anyway. Signed-off-by: Jason Ekstrand Reviewed-by: Topi Pohjolainen --- diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c index c6285d4..9108e5d 100644 --- a/src/intel/blorp/blorp_blit.c +++ b/src/intel/blorp/blorp_blit.c @@ -1264,7 +1264,7 @@ surf_convert_to_single_slice(const struct isl_device *isl_dev, uint32_t byte_offset; isl_tiling_get_intratile_offset_sa(isl_dev, info->surf.tiling, - info->view.format, info->surf.row_pitch, + info->surf.format, info->surf.row_pitch, x_offset_sa, y_offset_sa, &byte_offset, &info->tile_x_sa, &info->tile_y_sa);