diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2014-02-03 15:53:25 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2014-02-18 13:41:00 -0500 |
commit | 7d5a33b071d19314c452ca5252ecd990eb0dd696 (patch) | |
tree | 3da660abcc0aa4643297a89977dc6b9a368afb6b /drivers/gpu/drm/radeon/atombios_crtc.c | |
parent | c2288d4d3830946d91ae7aba599d34828d07f103 (diff) | |
download | blackbird-op-linux-7d5a33b071d19314c452ca5252ecd990eb0dd696.tar.gz blackbird-op-linux-7d5a33b071d19314c452ca5252ecd990eb0dd696.zip |
drm/radeon: unify bpc handling
We were already storing the bpc (bits per color) information
in radeon_crtc, so just use that everywhere rather than
calculating it everywhere we use it. This also allows us
to change it in one place if we ever want to override it.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/atombios_crtc.c')
-rw-r--r-- | drivers/gpu/drm/radeon/atombios_crtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c index a9338c85630f..f0d409d846f2 100644 --- a/drivers/gpu/drm/radeon/atombios_crtc.c +++ b/drivers/gpu/drm/radeon/atombios_crtc.c @@ -559,7 +559,7 @@ static u32 atombios_adjust_pll(struct drm_crtc *crtc, u32 adjusted_clock = mode->clock; int encoder_mode = atombios_get_encoder_mode(encoder); u32 dp_clock = mode->clock; - int bpc = radeon_get_monitor_bpc(connector); + int bpc = radeon_crtc->bpc; bool is_duallink = radeon_dig_monitor_is_duallink(encoder, mode->clock); /* reset the pll flags */ |