mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
intel/isl: Add a missing assert in isl_tiling_get_intratile_offset_sa
Fixes: a4dafe1fad "intel/isl: Make the offset helpers four dimensional"
Acked-by: Ivan Briano <ivan.briano@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11765>
This commit is contained in:
parent
7d521bc104
commit
eb7c28bf24
1 changed files with 1 additions and 0 deletions
|
|
@ -2758,6 +2758,7 @@ isl_tiling_get_intratile_offset_sa(enum isl_tiling tiling,
|
|||
*/
|
||||
assert(total_x_offset_sa % fmtl->bw == 0);
|
||||
assert(total_y_offset_sa % fmtl->bh == 0);
|
||||
assert(total_z_offset_sa % fmtl->bd == 0);
|
||||
const uint32_t total_x_offset_el = total_x_offset_sa / fmtl->bw;
|
||||
const uint32_t total_y_offset_el = total_y_offset_sa / fmtl->bh;
|
||||
const uint32_t total_z_offset_el = total_z_offset_sa / fmtl->bd;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue