[Intel-gfx] [PATCH] drm/i915: Partial abandonment of legacy DRM logging macros

Ville Syrjälä ville.syrjala at linux.intel.com
Tue Nov 8 12:05:01 UTC 2022


> @@ -2744,6 +2745,7 @@ add_timeline_fence_array(struct i915_execbuffer *eb,
>  			 const struct drm_i915_gem_execbuffer_ext_timeline_fences *timeline_fences)
>  {
>  	struct drm_i915_gem_exec_fence __user *user_fences;
> +	struct drm_device *drm = &eb->i915->drm;

We've said a firm "no" to drm_device pointers in display code at 
least. If we want a local device pointer we always make it a 'i915'.
Otherwise you end up with annoying aliases all over the place.

-- 
Ville Syrjälä
Intel


More information about the Intel-gfx mailing list