Skip to content

Commit eee5e5b

Browse files
Chiawen Huangalexdeucher
authored andcommitted
drm/amd/display: Skip backend validation for virtual monitors
[Why&How] Virtual monitors are now being validated during set_mode. Virtual monitors should not undergo backend validation, as the backend is intended only for physical monitors. Virtual sinks have no real backend part information and should be excluded from this validation. Reviewed-by: Aric Cyr <[email protected]> Signed-off-by: Chiawen Huang <[email protected]> Signed-off-by: Tom Chung <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 40bae1a commit eee5e5b

File tree

1 file changed

+7
-3
lines changed
  • drivers/gpu/drm/amd/display/dc/core

1 file changed

+7
-3
lines changed

drivers/gpu/drm/amd/display/dc/core/dc.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2334,11 +2334,15 @@ enum dc_status dc_commit_streams(struct dc *dc, struct dc_commit_streams_params
23342334
for (i = 0; i < params->stream_count; i++) {
23352335
struct dc_stream_state *stream = params->streams[i];
23362336
struct dc_stream_status *status = dc_stream_get_status(stream);
2337+
struct dc_sink *sink = stream->sink;
23372338

23382339
/* revalidate streams */
2339-
res = dc_validate_stream(dc, stream);
2340-
if (res != DC_OK)
2341-
return res;
2340+
if (!dc_is_virtual_signal(sink->sink_signal)) {
2341+
res = dc_validate_stream(dc, stream);
2342+
if (res != DC_OK)
2343+
return res;
2344+
}
2345+
23422346

23432347
dc_stream_log(dc, stream);
23442348

0 commit comments

Comments
 (0)