diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-08-27 22:44:15 -0700 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-09-12 19:42:57 -0700 |
commit | ec7e0d62c5fe5b17e833c7ab91d0b753f0d02918 (patch) | |
tree | a6c04d135fcde2ed8f96ad6e3512b574346c0ff2 /src/intel | |
parent | 7f2fecd11463da9d90a83ad65544271b35cd0d83 (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 <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/blorp/blorp_blit.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |