[Intel-gfx] [PATCH 1/2] drm/i915: Compute the fw_domain id from the mask

2017-05-12 Thread Chris Wilson
Storing both the mask and the id is redundant as we can trivially compute one from the other. As the mask is more frequently used, remove the id. Signed-off-by: Chris Wilson Cc: Mika Kuoppala Cc: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/intel_uncore.

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Compute the fw_domain id from the mask

2017-05-15 Thread Tvrtko Ursulin
On 12/05/2017 14:53, Chris Wilson wrote: Storing both the mask and the id is redundant as we can trivially compute one from the other. As the mask is more frequently used, remove the id. Signed-off-by: Chris Wilson Cc: Mika Kuoppala Cc: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_debugfs.c

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Compute the fw_domain id from the mask

2017-05-15 Thread Chris Wilson
On Mon, May 15, 2017 at 11:18:11AM +0100, Tvrtko Ursulin wrote: > > On 12/05/2017 14:53, Chris Wilson wrote: > >Storing both the mask and the id is redundant as we can trivially > >compute one from the other. As the mask is more frequently used, remove > >the id. > > > >Signed-off-by: Chris Wilson

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Compute the fw_domain id from the mask

2017-05-22 Thread Tvrtko Ursulin
On 15/05/2017 11:45, Chris Wilson wrote: On Mon, May 15, 2017 at 11:18:11AM +0100, Tvrtko Ursulin wrote: On 12/05/2017 14:53, Chris Wilson wrote: Storing both the mask and the id is redundant as we can trivially compute one from the other. As the mask is more frequently used, remove the id.