Re: [PATCH] drm: move read_domains and write_domain into i915 v2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.koenig@xxxxxxx>

Reviewed-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>

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@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux