Re: [Intel-gfx] [PATCH 06/13 v2] drm/i915: Remove use of gtt_mappable_entries

2013-01-17 Thread Rodrigo Vivi
Reviewed-by: Rodrigo Vivi On Wed, Jan 16, 2013 at 4:22 PM, Ben Widawsky wrote: > Mappable_end, ie. size is almost always what you want as opposed to the > number of entries. Since we already have that information, we can scrap > the number of entries and only calculate it when needed. > > If gtt

[Intel-gfx] [PATCH 06/13 v2] drm/i915: Remove use of gtt_mappable_entries

2013-01-16 Thread Ben Widawsky
Mappable_end, ie. size is almost always what you want as opposed to the number of entries. Since we already have that information, we can scrap the number of entries and only calculate it when needed. If gtt_start is !0, this will have slightly different behavior. This difference can only occur in