[Intel-gfx] [RFCv2 07/14] drm/i915: factor out __intel_lr_context_deferred_alloc()

Tian, Kevin kevin.tian at intel.com
Wed Feb 24 08:37:16 UTC 2016


> From: Wang, Zhi A
> Sent: Thursday, February 18, 2016 7:42 PM
> diff --git a/drivers/gpu/drm/i915/intel_lrc.h b/drivers/gpu/drm/i915/intel_lrc.h
> index e6cda3e..528c4fb 100644
> --- a/drivers/gpu/drm/i915/intel_lrc.h
> +++ b/drivers/gpu/drm/i915/intel_lrc.h
> @@ -97,10 +97,18 @@ static inline void intel_logical_ring_emit_reg(struct intel_ringbuffer
> *ringbuf,
>  #define LRC_PPHWSP_PN	(LRC_GUCSHR_PN + 1)
>  #define LRC_STATE_PN	(LRC_PPHWSP_PN + 1)
> 
> +struct intel_lr_context_alloc_params {
> +	struct intel_engine_cs *ring;
> +	u32 ringbuffer_size;
> +	bool ctx_needs_init;

'ctx_initialized'?

Thanks
Kevin


More information about the Intel-gfx mailing list