ROUND_UP_TO handles a NPOT alignment, but all the alignments we use
are power of two anyway, so there's no need.
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
return size;
/* 965+ just need multiples of page size for tiling */
- return ROUND_UP_TO(size, 4096);
+ return ALIGN(size, 4096);
}
/*
tile_width = 128;
/* 965 is flexible */
- return ROUND_UP_TO(pitch, tile_width);
+ return ALIGN(pitch, tile_width);
}
static struct drm_bacon_gem_bo_bucket *