]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/kms: Support NVIDIA format modifiers
authorJames Jones <jajones@nvidia.com>
Mon, 10 Feb 2020 23:15:55 +0000 (15:15 -0800)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 22 May 2020 01:11:16 +0000 (11:11 +1000)
commitf8eeaaa1cbec07ffb9662f4319f8874412cd6f35
tree30aa71544b9ab12c78fc38b3ab79963035e508f8
parentc65164f57227386e3380742616a56dbc7264a316
drm/nouveau/kms: Support NVIDIA format modifiers

Allow setting the block layout of a nouveau FB
object using DRM format modifiers.  When
specified, the format modifier block layout and
kind overrides the GEM buffer's implicit layout
and kind.  The specified format modifier is
validated against the list of modifiers supported
by the target display hardware.

v2: Used Tesla family instead of NV50 chipset compare
v4: Do not cache kind, tile_mode in nouveau_framebuffer
v5: Resolved against nouveau_framebuffer cleanup

Signed-off-by: James Jones <jajones@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv50/wndw.c
drivers/gpu/drm/nouveau/nouveau_display.c
drivers/gpu/drm/nouveau/nouveau_display.h