summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-08-27 22:44:15 -0700
committerJason Ekstrand <[email protected]>2016-09-12 19:42:57 -0700
commitec7e0d62c5fe5b17e833c7ab91d0b753f0d02918 (patch)
treea6c04d135fcde2ed8f96ad6e3512b574346c0ff2 /src/intel
parent7f2fecd11463da9d90a83ad65544271b35cd0d83 (diff)
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 <[email protected]> Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/blorp/blorp_blit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c
index c6285d4193d..9108e5db4dd 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);