]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/amd/display: Don't program scaler if we have no surface
authorHarry Wentland <harry.wentland@amd.com>
Wed, 21 Jun 2017 20:48:06 +0000 (16:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:08:14 +0000 (18:08 -0400)
commit866294f80582e252913c72b5e0f1792f6133424d
treef45d97382eedcc90456628d0407a0cf48e813e26
parenta95e7d737e1bc20eb311548f4e307e2155c5ca64
drm/amd/display: Don't program scaler if we have no surface

If we don't have a surface in dc_commit_streams scl_data won't get
populated in resource_build_scaling_params_for_context. In this case we
shouldn't attempt to program the scaler.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c