[Intel-gfx] [PATCH] drm/i915: Optimize the i915_gem_gtt_finish_object function

Chris Wilson chris at chris-wilson.co.uk
Fri Jul 11 19:32:46 CEST 2014


On Fri, Jul 11, 2014 at 05:29:48PM +0000, Reese, Armin C wrote:
> Originally, the function always executes do_idling() followed by undo_idling() regardless of whether obj->has_dma_mapping is TRUE or not.  This change idles the GPU only if needed.

But those functions will be inlined by the compiler, and if it is doing
its job corectly will see more opportunity for optimising the branching.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list