drm/vc4: Expose the format modifiers for firmware kms.
authorEric Anholt <eric@anholt.net>
Mon, 18 Mar 2019 23:38:32 +0000 (16:38 -0700)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:32:58 +0000 (16:32 +0100)
commit63e0a1b6985fccdafe50dfbeb22b5b835853fed2
tree75ce7548b10cbb0c1924091801cb50e487a25a70
parent78128dc92b44eee4a57d76ccfb0a00d610256120
drm/vc4: Expose the format modifiers for firmware kms.

This should technically not expose VC4_T_TILED on pi4.  However, if we
don't expose anything, then userspace will assume that display can
handle whatever modifiers 3d can do (UIF on 2711).  By exposing a
list, that will get intersected with what 3D can do so that we get T
tiling for display on 2710 and linear on 2711.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_firmware_kms.c