[Intel-gfx] [PATCH 02/18] drm/i915: introduce drm_i915_gem_object page_size members
Chris Wilson
chris at chris-wilson.co.uk
Wed Apr 5 12:39:57 UTC 2017
On Wed, Apr 05, 2017 at 01:32:30PM +0100, Chris Wilson wrote:
> An approach that might be interesting. On pinning the pages
> (i.e. ops->get_pages) if we fill in the bitmask of page sizes, something
> like
>
> for_each_sg() {
> obj->mm.page_sizes |= fls(sg->length);
>
> obj->mm.pages_sizes &= ~i915->info.page_sizes;
Well, that was written in haste. You'll need a precomputed translation
table to map the order to the nearest supported page size.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list