Re: [Intel-gfx] [PATCH v7 4/4] drm/i915: cache number of MOCS entries

2019-01-07 Thread Tvrtko Ursulin
On 04/01/2019 23:47, Lucas De Marchi wrote: On Fri, Dec 21, 2018 at 11:56:43AM +, Tvrtko Ursulin wrote: On 14/12/2018 18:20, Lucas De Marchi wrote: Instead of checking the gen number every time we need to know the max number of entries, just save it into the table struct so we don't need

Re: [Intel-gfx] [PATCH v7 4/4] drm/i915: cache number of MOCS entries

2019-01-04 Thread Lucas De Marchi
On Fri, Dec 21, 2018 at 11:56:43AM +, Tvrtko Ursulin wrote: > > On 14/12/2018 18:20, Lucas De Marchi wrote: > > Instead of checking the gen number every time we need to know the max > > number of entries, just save it into the table struct so we don't need > > extra branches throughout the

Re: [Intel-gfx] [PATCH v7 4/4] drm/i915: cache number of MOCS entries

2018-12-21 Thread Tvrtko Ursulin
On 14/12/2018 18:20, Lucas De Marchi wrote: Instead of checking the gen number every time we need to know the max number of entries, just save it into the table struct so we don't need extra branches throughout the code. Suggested-by: Tvrtko Ursulin Signed-off-by: Lucas De Marchi ---

[Intel-gfx] [PATCH v7 4/4] drm/i915: cache number of MOCS entries

2018-12-14 Thread Lucas De Marchi
Instead of checking the gen number every time we need to know the max number of entries, just save it into the table struct so we don't need extra branches throughout the code. Suggested-by: Tvrtko Ursulin Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/intel_mocs.c | 31