Skip to content

Commit da3a9e9

Browse files
committed
drm/fourcc: fix Amlogic Video Framebuffer Compression macro
Fix the Amlogic Video Framebuffer Compression modifier macro to correctly add the layout options, a pair of parenthesis was missing. Fixes: d6528ec ("drm/fourcc: Add modifier definitions for describing Amlogic Video Framebuffer Compression") Signed-off-by: Neil Armstrong <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 7d98404 commit da3a9e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/uapi/drm/drm_fourcc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ drm_fourcc_canonicalize_nvidia_format_mod(__u64 modifier)
10041004
#define DRM_FORMAT_MOD_AMLOGIC_FBC(__layout, __options) \
10051005
fourcc_mod_code(AMLOGIC, \
10061006
((__layout) & __fourcc_mod_amlogic_layout_mask) | \
1007-
((__options) & __fourcc_mod_amlogic_options_mask \
1007+
(((__options) & __fourcc_mod_amlogic_options_mask) \
10081008
<< __fourcc_mod_amlogic_options_shift))
10091009

10101010
/* Amlogic FBC Layouts */

0 commit comments

Comments
 (0)