From ec7e0d62c5fe5b17e833c7ab91d0b753f0d02918 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 27 Aug 2016 22:44:15 -0700 Subject: 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 --- src/intel/blorp/blorp_blit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/intel') diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c index c6285d4193..9108e5db4d 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); -- cgit v1.2.3