drm/fourcc: Add definitions for Rockchip vendor and VPU tiled format
This introduces specific definitions for vendor Rockchip and its associated tiled format modifier. This modifier is used for the output format of the Video/JPEG Decoder, that can be imported directly with the VOP2. Signed-off-by: Andy Yan <andy.yan@rock-chips.com> Signed-off-by: Sandy Huang <hjc@rock-chips.com> Change-Id: I03c1a51af5fd8bc0702209ae216c4706b4101c49
This commit is contained in:
@@ -334,6 +334,7 @@ extern "C" {
|
||||
#define DRM_FORMAT_MOD_VENDOR_ARM 0x08
|
||||
#define DRM_FORMAT_MOD_VENDOR_ALLWINNER 0x09
|
||||
#define DRM_FORMAT_MOD_VENDOR_AMLOGIC 0x0a
|
||||
#define DRM_FORMAT_MOD_VENDOR_ROCKCHIP 0x0b
|
||||
|
||||
/* add more to the end as needed */
|
||||
|
||||
@@ -1058,6 +1059,15 @@ drm_fourcc_canonicalize_nvidia_format_mod(__u64 modifier)
|
||||
*/
|
||||
#define AMLOGIC_FBC_OPTION_MEM_SAVING (1ULL << 0)
|
||||
|
||||
#define ROCKCHIP_TILED_BLOCK_SIZE_MASK 0xf
|
||||
#define ROCKCHIP_TILED_BLOCK_SIZE_8x8 (1ULL)
|
||||
#define ROCKCHIP_TILED_BLOCK_SIZE_4x4_MODE0 (2ULL)
|
||||
#define ROCKCHIP_TILED_BLOCK_SIZE_4x4_MODE1 (3ULL)
|
||||
|
||||
#define DRM_FORMAT_MOD_ROCKCHIP_TILED(_mode) fourcc_mod_code(ROCKCHIP, _mode)
|
||||
|
||||
#define IS_ROCKCHIP_TILED_MOD(val) (((val) >> 56) == DRM_FORMAT_MOD_VENDOR_ROCKCHIP)
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user