OSDN Git Service

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)
commitfa4f4c213f5f7807360c41f2501a3031a9940f3a
tree30aa71544b9ab12c78fc38b3ab79963035e508f8
parent4f5746c863db1a98535964009da19c6f7a842c55
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