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

2018-02-16 Thread Chris Wilson
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

[Intel-gfx] [PATCH] drm: move read_domains and write_domain into i915 v2

2018-02-16 Thread Christian König
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/