diff options
Diffstat (limited to 'src/intel/isl/isl.c')
-rw-r--r-- | src/intel/isl/isl.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c index 1227238b186..fb4e170bfc0 100644 --- a/src/intel/isl/isl.c +++ b/src/intel/isl/isl.c @@ -2147,7 +2147,7 @@ isl_surf_get_image_offset_el(const struct isl_surf *surf, void isl_tiling_get_intratile_offset_el(enum isl_tiling tiling, - uint8_t bs, + uint32_t bpb, uint32_t row_pitch, uint32_t total_x_offset_el, uint32_t total_y_offset_el, @@ -2156,15 +2156,14 @@ isl_tiling_get_intratile_offset_el(enum isl_tiling tiling, uint32_t *y_offset_el) { if (tiling == ISL_TILING_LINEAR) { + assert(bpb % 8 == 0); *base_address_offset = total_y_offset_el * row_pitch + - total_x_offset_el * bs; + total_x_offset_el * (bpb / 8); *x_offset_el = 0; *y_offset_el = 0; return; } - const uint32_t bpb = bs * 8; - struct isl_tile_info tile_info; isl_tiling_get_info(tiling, bpb, &tile_info); |