[Intel-gfx] [PATCH 03/15] drm/i915: introduce page_size_mask to dev_info

Chris Wilson chris at chris-wilson.co.uk
Wed May 31 19:19:35 UTC 2017


On Wed, May 31, 2017 at 07:51:58PM +0100, Matthew Auld wrote:
> diff --git a/drivers/gpu/drm/i915/selftests/mock_gem_device.c b/drivers/gpu/drm/i915/selftests/mock_gem_device.c
> index 7f038ea15ef5..bb12e6fe24ec 100644
> --- a/drivers/gpu/drm/i915/selftests/mock_gem_device.c
> +++ b/drivers/gpu/drm/i915/selftests/mock_gem_device.c
> @@ -147,6 +147,9 @@ struct drm_i915_private *mock_gem_device(void)
>  
>  	mkwrite_device_info(i915)->gen = -1;
>  
> +	mkwrite_device_info(i915)->page_size_mask =
> +		I915_GTT_PAGE_SIZE_4K;
> +

The next person to add mock device_info details will be moving these to
a function. You have been warned.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list