diff options
| author | Emily Deng <[email protected]> | 2020-03-25 10:59:16 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-04-01 18:44:42 +0000 |
| commit | 6bc8cdde574b1120502688fb52061a216d112ed3 (patch) | |
| tree | 8710553a6809fe4c287f5f232000ecd79d416ee9 /drivers/gpu/drm/amd/amdgpu/dce_virtual.c | |
| parent | drm/amdgpu: Virtual display need to support multiple ctrcs (diff) | |
| download | kernel-6bc8cdde574b1120502688fb52061a216d112ed3.tar.gz kernel-6bc8cdde574b1120502688fb52061a216d112ed3.zip | |
drm/amdgpu: Add 4k resolution for virtual display
Add 4k resolution for virtual connector.
Signed-off-by: Emily Deng <[email protected]>
Reviewed-by: Monk Liu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/dce_virtual.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c index 13e12be667fc..bb4fd1341352 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c @@ -286,7 +286,7 @@ static int dce_virtual_get_modes(struct drm_connector *connector) static const struct mode_size { int w; int h; - } common_modes[17] = { + } common_modes[21] = { { 640, 480}, { 720, 480}, { 800, 600}, @@ -303,10 +303,14 @@ static int dce_virtual_get_modes(struct drm_connector *connector) {1680, 1050}, {1600, 1200}, {1920, 1080}, - {1920, 1200} + {1920, 1200}, + {4096, 3112}, + {3656, 2664}, + {3840, 2160}, + {4096, 2160}, }; - for (i = 0; i < 17; i++) { + for (i = 0; i < 21; i++) { mode = drm_cvt_mode(dev, common_modes[i].w, common_modes[i].h, 60, false, false, false); drm_mode_probed_add(connector, mode); } |
