Skip to content

Commit 2cc69a1

Browse files
Alex Hungalexdeucher
authored andcommitted
drm/amd/display: Return max resolution supported by DWB
mode_config's max width x height is 4096x2160 and is higher than DWB's max resolution 3840x2160 which is returned instead. Cc: [email protected] Reviewed-by: Harry Wentland <[email protected]> Acked-by: Hamza Mahfooz <[email protected]> Signed-off-by: Alex Hung <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent d06af58 commit 2cc69a1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_wb.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ static int amdgpu_dm_wb_encoder_atomic_check(struct drm_encoder *encoder,
7676

7777
static int amdgpu_dm_wb_connector_get_modes(struct drm_connector *connector)
7878
{
79-
struct drm_device *dev = connector->dev;
80-
81-
return drm_add_modes_noedid(connector, dev->mode_config.max_width,
82-
dev->mode_config.max_height);
79+
/* Maximum resolution supported by DWB */
80+
return drm_add_modes_noedid(connector, 3840, 2160);
8381
}
8482

8583
static int amdgpu_dm_wb_prepare_job(struct drm_writeback_connector *wb_connector,

0 commit comments

Comments
 (0)