[Intel-gfx] [PATCH 6/7] drm/i915: Move common engine setup into intel_engine_cs.c

Chris Wilson chris at chris-wilson.co.uk
Wed Jul 13 16:04:38 UTC 2016


On Wed, Jul 13, 2016 at 04:03:40PM +0100, Tvrtko Ursulin wrote:
> +	/*
> +	 * Catch failures to update intel_engines table when the new engines
> +	 * are added to the driver by a warning and disabling the forgotten
> +	 * engines.
> +	 */
> +	if (WARN_ON(mask != INTEL_INFO(dev_priv)->ring_mask)) {
> +		struct intel_device_info *info =
> +			(struct intel_device_info *)&dev_priv->info;

I snuck in mkwrite_device_info(), so

if (WARN_ON(mask != INTEL_INFO(dev_priv)->ring_mask))
	mkwrite_device_info(dev_priv)->ring_mask = mask;
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list