[Intel-gfx] [RFC 1/3] drm/i915: Use natural width type for VMA pin count

Chris Wilson chris at chris-wilson.co.uk
Thu Apr 21 12:16:39 UTC 2016


On Thu, Apr 21, 2016 at 01:05:51PM +0100, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> 
> Using four bits for the pin count in the middle of the data
> structure just makes the compiler generate verbose code.

Or rather by opening coding this we can do much better and
simultaneously checking pin and binding inside the hot i915_vma_pin
function.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list