Quoting Christian König (2018-02-16 12:43:38)
> i915 is the only driver using those fields in the drm_gem_object
> structure, so they only waste memory for all other drivers.
> 
> Move the fields into drm_i915_gem_object instead and patch the i915 code
> with the following sed commands:
> 
> sed -i "s/obj->base.read_domains/obj->read_domains/g" 
> drivers/gpu/drm/i915/*.c drivers/gpu/drm/i915/*/*.c
> sed -i "s/obj->base.write_domain/obj->write_domain/g" 
> drivers/gpu/drm/i915/*.c drivers/gpu/drm/i915/*/*.c
> 
> Change is only compile tested.
> 
> v2: move fields around as suggested by Chris.
> 
> Signed-off-by: Christian König <christian.koe...@amd.com>

Reviewed-by: Chris Wilson <ch...@chris-wilson.co.uk>

Thanks for the patch, I've pushed to dinq, so it should show up in
drm-misc and beyond in a few weeks.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to