[Intel-gfx] [PATCH 11/18] drm/i915: Record space required for request emission

Chris Wilson chris at chris-wilson.co.uk
Mon Sep 19 11:32:32 UTC 2016


On Mon, Sep 19, 2016 at 01:47:30PM +0300, Joonas Lahtinen wrote:
> On ke, 2016-09-14 at 07:52 +0100, Chris Wilson wrote:
> > @@ -2677,8 +2681,21 @@ static void intel_ring_default_vfuncs(struct drm_i915_private *dev_priv,
> >  	engine->reset_hw = reset_ring_common;
> >  
> >  	engine->emit_request = i9xx_emit_request;
> > -	if (i915.semaphores)
> > +	engine->emit_request_sz = i9xx_emit_request_sz;
> > +	if (i915.semaphores) {
> > +		int num_rings;
> 
> 'initialized_rings' to differentiate as suggested by Tvrtko too.

Tvrtko wasn't referring to this. The point is that we don't know
initialized_rings here, just the declared set of rings we think
the hardware is supposed to have.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list