Skip to content

Commit 6badb50

Browse files
cubanismogregkh
authored andcommitted
drm/nouveau/disp: Always accept linear modifier
commit e2fe0c5 upstream. On some chipsets, which block-linear modifiers are supported is format-specific. However, linear modifiers are always be supported. The prior modifier filtering logic was not accounting for the linear case. Cc: stable@vger.kernel.org Fixes: c586f30 ("drm/nouveau/kms: Add format mod prop to base/ovly/nvdisp") Signed-off-by: James Jones <jajones@nvidia.com> Link: https://lore.kernel.org/r/20250811220017.1337-3-jajones@nvidia.com Signed-off-by: Danilo Krummrich <dakr@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 84603ed commit 6badb50

File tree

1 file changed

+4
-0
lines changed
  • drivers/gpu/drm/nouveau/dispnv50

1 file changed

+4
-0
lines changed

drivers/gpu/drm/nouveau/dispnv50/wndw.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,10 @@ static bool nv50_plane_format_mod_supported(struct drm_plane *plane,
795795
struct nouveau_drm *drm = nouveau_drm(plane->dev);
796796
uint8_t i;
797797

798+
/* All chipsets can display all formats in linear layout */
799+
if (modifier == DRM_FORMAT_MOD_LINEAR)
800+
return true;
801+
798802
if (drm->client.device.info.chipset < 0xc0) {
799803
const struct drm_format_info *info = drm_format_info(format);
800804
const uint8_t kind = (modifier >> 12) & 0xff;

0 commit comments

Comments
 (0)