mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
isl: Assert that alignments are not 0 for isl_align
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
4d68c477ad
commit
2f0a10149c
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ isl_is_aligned(uintmax_t n, uintmax_t a)
|
|||
static inline uintmax_t
|
||||
isl_align(uintmax_t n, uintmax_t a)
|
||||
{
|
||||
assert(isl_is_pow2(a));
|
||||
assert(a != 0 && isl_is_pow2(a));
|
||||
return (n + a - 1) & ~(a - 1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue