Skip to content

Commit b96ca23

Browse files
committed
drm/msm/dpu: drop virt_formats from SSPP subblock configuration
The virt_formats / virt_num_formats are not used by the current driver and are not going to be used in future since formats for virtual planes are handled in a different way, by forbidding unsupported combinations during atomic_check. Drop those fields now. Reviewed-by: Abhinav Kumar <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/621479/ Link: https://lore.kernel.org/r/[email protected]
1 parent 31f7148 commit b96ca23

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,6 @@ static const u32 wb2_formats_rgb_yuv[] = {
317317
.base = 0x1a00, .len = 0x100,}, \
318318
.format_list = plane_formats_yuv, \
319319
.num_formats = ARRAY_SIZE(plane_formats_yuv), \
320-
.virt_format_list = plane_formats, \
321-
.virt_num_formats = ARRAY_SIZE(plane_formats), \
322320
.rotation_cfg = NULL, \
323321
}
324322

@@ -333,8 +331,6 @@ static const u32 wb2_formats_rgb_yuv[] = {
333331
.base = 0x1a00, .len = 0x100,}, \
334332
.format_list = plane_formats_yuv, \
335333
.num_formats = ARRAY_SIZE(plane_formats_yuv), \
336-
.virt_format_list = plane_formats, \
337-
.virt_num_formats = ARRAY_SIZE(plane_formats), \
338334
.rotation_cfg = rot_cfg, \
339335
}
340336

@@ -344,8 +340,6 @@ static const u32 wb2_formats_rgb_yuv[] = {
344340
.maxupscale = SSPP_UNITY_SCALE, \
345341
.format_list = plane_formats, \
346342
.num_formats = ARRAY_SIZE(plane_formats), \
347-
.virt_format_list = plane_formats, \
348-
.virt_num_formats = ARRAY_SIZE(plane_formats), \
349343
}
350344

351345
/* qseed2 is not supported, so disabled scaling */
@@ -360,8 +354,6 @@ static const u32 wb2_formats_rgb_yuv[] = {
360354
.base = 0x320, .len = 0x100,}, \
361355
.format_list = plane_formats_yuv, \
362356
.num_formats = ARRAY_SIZE(plane_formats_yuv), \
363-
.virt_format_list = plane_formats, \
364-
.virt_num_formats = ARRAY_SIZE(plane_formats), \
365357
.rotation_cfg = NULL, \
366358
}
367359

@@ -373,8 +365,6 @@ static const u32 wb2_formats_rgb_yuv[] = {
373365
.base = 0x200, .len = 0x28,}, \
374366
.format_list = plane_formats, \
375367
.num_formats = ARRAY_SIZE(plane_formats), \
376-
.virt_format_list = plane_formats, \
377-
.virt_num_formats = ARRAY_SIZE(plane_formats), \
378368
}
379369

380370
#define _DMA_SBLK() \
@@ -383,8 +373,6 @@ static const u32 wb2_formats_rgb_yuv[] = {
383373
.maxupscale = SSPP_UNITY_SCALE, \
384374
.format_list = plane_formats, \
385375
.num_formats = ARRAY_SIZE(plane_formats), \
386-
.virt_format_list = plane_formats, \
387-
.virt_num_formats = ARRAY_SIZE(plane_formats), \
388376
}
389377

390378
static const struct dpu_rotation_cfg dpu_rot_sc7280_cfg_v2 = {

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,6 @@ struct dpu_caps {
372372
* @csc_blk:
373373
* @format_list: Pointer to list of supported formats
374374
* @num_formats: Number of supported formats
375-
* @virt_format_list: Pointer to list of supported formats for virtual planes
376-
* @virt_num_formats: Number of supported formats for virtual planes
377375
* @dpu_rotation_cfg: inline rotation configuration
378376
*/
379377
struct dpu_sspp_sub_blks {
@@ -386,8 +384,6 @@ struct dpu_sspp_sub_blks {
386384

387385
const u32 *format_list;
388386
u32 num_formats;
389-
const u32 *virt_format_list;
390-
u32 virt_num_formats;
391387
const struct dpu_rotation_cfg *rotation_cfg;
392388
};
393389

0 commit comments

Comments
 (0)