]> Gentwo Git Trees - linux/.git/commit
drm/nouveau: Advertise correct modifiers on GB20x
authorJames Jones <jajones@nvidia.com>
Thu, 30 Oct 2025 18:11:53 +0000 (11:11 -0700)
committerDave Airlie <airlied@redhat.com>
Thu, 6 Nov 2025 01:02:08 +0000 (11:02 +1000)
commit664ce10246ba00746af94a08b7fbda8ccaacd930
treebccd33f5a3cbd8d5e76e9be261a166453f01a5a2
parent1cf52a0d4ba079fb354fa1339f5fb34142228dae
drm/nouveau: Advertise correct modifiers on GB20x

8 and 16 bit formats use a different layout on
GB20x than they did on prior chips. Add the
corresponding DRM format modifiers to the list of
modifiers supported by the display engine on such
chips, and filter the supported modifiers for each
format based on its bytes per pixel in
nv50_plane_format_mod_supported().

Note this logic will need to be updated when GB10
support is added, since it is a GB20x chip that
uses the pre-GB20x sector layout for all formats.

Fixes: 6cc6e08d4542 ("drm/nouveau/kms: add support for GB20x")
Signed-off-by: James Jones <jajones@nvidia.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20251030181153.1208-3-jajones@nvidia.com
drivers/gpu/drm/nouveau/dispnv50/disp.c
drivers/gpu/drm/nouveau/dispnv50/disp.h
drivers/gpu/drm/nouveau/dispnv50/wndw.c
drivers/gpu/drm/nouveau/dispnv50/wndwca7e.c