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: [email protected] Fixes: c586f30 ("drm/nouveau/kms: Add format mod prop to base/ovly/nvdisp") Signed-off-by: James Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Danilo Krummrich <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 84603ed commit 6badb50

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • drivers/gpu/drm/nouveau/dispnv50

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)