drm/fourcc: Fix modifier field mask for AMD modifiers.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 13 Nov 2020 17:55:33 +0000 (18:55 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Nov 2020 22:29:47 +0000 (17:29 -0500)
commitb7397bad74db7bd380b8eee9f1d97bbfe42bdd23
tree01e60e00c7735e2c32b77a2881272262ada797e3
parent52f6f16d4fe4dd6624c7d6555ba0bd95930e0a1a
drm/fourcc: Fix modifier field mask for AMD modifiers.

The DCC_MAX_COMPRESSED_BLOCK has to contain one of
AMD_FMT_MOD_DCC_BLOCK_* and with 3 values this doesn't
fit in 1 bit.

Fix this cleanly while it is only in drm-next.

Fixes: 8ba16d599374 ("drm/fourcc: Add AMD DRM modifiers.")
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
include/uapi/drm/drm_fourcc.h