Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: Add 4k resolution for virtual display

Add 4k resolution for virtual connector.

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Emily Deng and committed by
Alex Deucher
6bc8cdde 02f6efb4

+7 -3
+7 -3
drivers/gpu/drm/amd/amdgpu/dce_virtual.c
··· 286 286 static const struct mode_size { 287 287 int w; 288 288 int h; 289 - } common_modes[17] = { 289 + } common_modes[21] = { 290 290 { 640, 480}, 291 291 { 720, 480}, 292 292 { 800, 600}, ··· 303 303 {1680, 1050}, 304 304 {1600, 1200}, 305 305 {1920, 1080}, 306 - {1920, 1200} 306 + {1920, 1200}, 307 + {4096, 3112}, 308 + {3656, 2664}, 309 + {3840, 2160}, 310 + {4096, 2160}, 307 311 }; 308 312 309 - for (i = 0; i < 17; i++) { 313 + for (i = 0; i < 21; i++) { 310 314 mode = drm_cvt_mode(dev, common_modes[i].w, common_modes[i].h, 60, false, false, false); 311 315 drm_mode_probed_add(connector, mode); 312 316 }