[Mesa-dev] [PATCH 05/33] intel/blorp: Use the surface format for computing offsets

Jason Ekstrand jason at jlekstrand.net
Wed Aug 31 21:22:24 UTC 2016


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.
---
 src/intel/blorp/blorp_blit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c
index 181dfeea..9c72604 100644
--- a/src/intel/blorp/blorp_blit.c
+++ b/src/intel/blorp/blorp_blit.c
@@ -1267,7 +1267,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);
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list