mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
drm/verisilicon: add primary modifier for format tables
Currently the format tables are only used for the primary plane. Add primary modifiers to names related to the tables. Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patch.msgid.link/20260910095000.3505878-1-zhengxingda@iscas.ac.cn
This commit is contained in:
parent
5a83606d9f
commit
e5d43d7e92
|
|
@ -10,7 +10,7 @@
|
|||
#include "vs_dc_top_regs.h"
|
||||
#include "vs_hwdb.h"
|
||||
|
||||
static const u32 vs_formats_array_no_yuv444[] = {
|
||||
static const u32 vs_primary_formats_array_no_yuv444[] = {
|
||||
DRM_FORMAT_XRGB4444,
|
||||
DRM_FORMAT_XBGR4444,
|
||||
DRM_FORMAT_RGBX4444,
|
||||
|
|
@ -44,7 +44,7 @@ static const u32 vs_formats_array_no_yuv444[] = {
|
|||
/* TODO: non-RGB formats */
|
||||
};
|
||||
|
||||
static const u32 vs_formats_array_with_yuv444[] = {
|
||||
static const u32 vs_primary_formats_array_with_yuv444[] = {
|
||||
DRM_FORMAT_XRGB4444,
|
||||
DRM_FORMAT_XBGR4444,
|
||||
DRM_FORMAT_RGBX4444,
|
||||
|
|
@ -79,13 +79,13 @@ static const u32 vs_formats_array_with_yuv444[] = {
|
|||
};
|
||||
|
||||
static const struct vs_formats vs_formats_no_yuv444 = {
|
||||
.array = vs_formats_array_no_yuv444,
|
||||
.num = ARRAY_SIZE(vs_formats_array_no_yuv444)
|
||||
.primary_array = vs_primary_formats_array_no_yuv444,
|
||||
.primary_num = ARRAY_SIZE(vs_primary_formats_array_no_yuv444)
|
||||
};
|
||||
|
||||
static const struct vs_formats vs_formats_with_yuv444 = {
|
||||
.array = vs_formats_array_with_yuv444,
|
||||
.num = ARRAY_SIZE(vs_formats_array_with_yuv444)
|
||||
.primary_array = vs_primary_formats_array_with_yuv444,
|
||||
.primary_num = ARRAY_SIZE(vs_primary_formats_array_with_yuv444)
|
||||
};
|
||||
|
||||
static struct vs_chip_identity vs_chip_identities[] = {
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@
|
|||
#include <linux/types.h>
|
||||
|
||||
struct vs_formats {
|
||||
const u32 *array;
|
||||
unsigned int num;
|
||||
const u32 *primary_array;
|
||||
unsigned int primary_num;
|
||||
};
|
||||
|
||||
struct vs_chip_identity {
|
||||
|
|
|
|||
|
|
@ -168,8 +168,8 @@ struct drm_plane *vs_primary_plane_init(struct drm_device *drm_dev, struct vs_dc
|
|||
|
||||
plane = drmm_universal_plane_alloc(drm_dev, struct drm_plane, dev, 0,
|
||||
&vs_primary_plane_funcs,
|
||||
dc->identity.formats->array,
|
||||
dc->identity.formats->num,
|
||||
dc->identity.formats->primary_array,
|
||||
dc->identity.formats->primary_num,
|
||||
NULL,
|
||||
DRM_PLANE_TYPE_PRIMARY,
|
||||
NULL);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user