diff options
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/isl/isl_priv.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intel/isl/isl_priv.h b/src/intel/isl/isl_priv.h index 3c4cc1ed95b..186e84db46d 100644 --- a/src/intel/isl/isl_priv.h +++ b/src/intel/isl/isl_priv.h @@ -80,6 +80,13 @@ isl_align_npot(uintmax_t n, uintmax_t a) return ((n + a - 1) / a) * a; } +static inline uintmax_t +isl_assert_div(uintmax_t n, uintmax_t a) +{ + assert(n % a == 0); + return n / a; +} + /** * Alignment must be a power of 2. */ |