Re: [Intel-gfx] [PATCH v2 02/11] drm/i915: Move intel_get_format_info() to intel_fb.c

2021-10-13 Thread Imre Deak
On Wed, Oct 13, 2021 at 11:17:04PM +0300, Ville Syrjälä wrote: > On Fri, Oct 08, 2021 at 03:19:09AM +0300, Imre Deak wrote: > > Move the function retrieving the format override information for a given > > format/modifier to intel_fb.c. We can store a pointer to the format list > > in each

Re: [Intel-gfx] [PATCH v2 02/11] drm/i915: Move intel_get_format_info() to intel_fb.c

2021-10-13 Thread Ville Syrjälä
On Fri, Oct 08, 2021 at 03:19:09AM +0300, Imre Deak wrote: > Move the function retrieving the format override information for a given > format/modifier to intel_fb.c. We can store a pointer to the format list > in each modifier's descriptor instead of the corresponding switch/case > logic,

[Intel-gfx] [PATCH v2 02/11] drm/i915: Move intel_get_format_info() to intel_fb.c

2021-10-07 Thread Imre Deak
Move the function retrieving the format override information for a given format/modifier to intel_fb.c. We can store a pointer to the format list in each modifier's descriptor instead of the corresponding switch/case logic, avoiding the listing of the modifiers twice. v2: Handle invalid modifiers