Re: [PATCH v2] drm/gem: Check for valid formats

2023-01-05 Thread Daniel Vetter
On Tue, Jan 03, 2023 at 03:12:15PM +0100, Thomas Zimmermann wrote: > > > Am 03.01.23 um 14:59 schrieb Maíra Canal: > > Currently, drm_gem_fb_create() doesn't check if the pixel format is > > supported, which can lead to the acceptance of invalid pixel formats > > e.g. the acceptance of invalid mo

Re: [PATCH v2] drm/gem: Check for valid formats

2023-01-03 Thread Thomas Zimmermann
Am 03.01.23 um 14:59 schrieb Maíra Canal: Currently, drm_gem_fb_create() doesn't check if the pixel format is supported, which can lead to the acceptance of invalid pixel formats e.g. the acceptance of invalid modifiers. Therefore, add a check for valid formats on drm_gem_fb_create(). Moreover

[PATCH v2] drm/gem: Check for valid formats

2023-01-03 Thread Maíra Canal
Currently, drm_gem_fb_create() doesn't check if the pixel format is supported, which can lead to the acceptance of invalid pixel formats e.g. the acceptance of invalid modifiers. Therefore, add a check for valid formats on drm_gem_fb_create(). Moreover, note that this check is only valid for atomi