diff options
author | James Jones <jajones@nvidia.com> | 2020-02-11 02:15:53 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2020-05-22 04:11:15 +0300 |
commit | c586f30bf74cb580c1748222b05a0bad57d7dcd4 (patch) | |
tree | 2dcf6adf70888bc3852b1c7a9070d2a686bbab51 /drivers/gpu/drm/nouveau/nouveau_display.h | |
parent | fd44028ff145ffb2d03c877d74f479da04ac2c62 (diff) | |
download | linux-c586f30bf74cb580c1748222b05a0bad57d7dcd4.tar.xz |
drm/nouveau/kms: Add format mod prop to base/ovly/nvdisp
Advertise support for the full list of format
modifiers supported by each class of NVIDIA
desktop GPU display hardware. Stash the array
of modifiers in the nouveau_display struct for
use when validating userspace framebuffer
creation requests, which will be supportd in
a subsequent change.
Signed-off-by: James Jones <jajones@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_display.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_display.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_display.h b/drivers/gpu/drm/nouveau/nouveau_display.h index c745213d9bdf..1dd69c50a4ed 100644 --- a/drivers/gpu/drm/nouveau/nouveau_display.h +++ b/drivers/gpu/drm/nouveau/nouveau_display.h @@ -32,6 +32,8 @@ struct nouveau_display { struct drm_property *color_vibrance_property; struct drm_atomic_state *suspend; + + const u64 *format_modifiers; }; static inline struct nouveau_display * |