diff options
author | Rodrigo Siqueira <[email protected]> | 2022-10-18 08:28:20 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2022-10-24 14:34:46 -0400 |
commit | 987b96eb860036ab79051fb271f7fbdc01c9daf5 (patch) | |
tree | 9a88abad01e49c7d6b3fd04123cf1740e80e4623 | |
parent | f6ae69f49fcf697b6ffa93d58eb3746897f61cf8 (diff) |
drm/amd/display: Handle virtual hardware detect
If virtual hardware is detected, there is no reason to run the full
dc_commit_streams process, and DC can return true immediately.
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Rodrigo Siqueira <[email protected]>
Co-developed-by: Aurabindo Pillai <[email protected]>
Signed-off-by: Aurabindo Pillai <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index b904b03cf94e..61b574b9e736 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1912,6 +1912,9 @@ enum dc_status dc_commit_streams(struct dc *dc, enum dc_status res = DC_OK; struct dc_validation_set set[MAX_STREAMS] = {0}; + if (dc->ctx->dce_environment == DCE_ENV_VIRTUAL_HW) + return res; + if (!streams_changed(dc, streams, stream_count)) return res; |