Lines Matching refs:bpc
105 int bpc = 8; in amdgpu_connector_get_monitor_bpc() local
113 if (connector->display_info.bpc) in amdgpu_connector_get_monitor_bpc()
114 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc()
121 if (connector->display_info.bpc) in amdgpu_connector_get_monitor_bpc()
122 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc()
130 if (connector->display_info.bpc) in amdgpu_connector_get_monitor_bpc()
131 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc()
136 if (connector->display_info.bpc) in amdgpu_connector_get_monitor_bpc()
137 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc()
146 bpc = 6; in amdgpu_connector_get_monitor_bpc()
148 bpc = 8; in amdgpu_connector_get_monitor_bpc()
160 if (bpc > 12) { in amdgpu_connector_get_monitor_bpc()
162 connector->name, bpc); in amdgpu_connector_get_monitor_bpc()
163 bpc = 12; in amdgpu_connector_get_monitor_bpc()
178 if ((bpc == 12) && (mode_clock * 3/2 > max_tmds_clock)) { in amdgpu_connector_get_monitor_bpc()
181 bpc = 10; in amdgpu_connector_get_monitor_bpc()
183 bpc = 8; in amdgpu_connector_get_monitor_bpc()
186 connector->name, bpc); in amdgpu_connector_get_monitor_bpc()
189 if ((bpc == 10) && (mode_clock * 5/4 > max_tmds_clock)) { in amdgpu_connector_get_monitor_bpc()
190 bpc = 8; in amdgpu_connector_get_monitor_bpc()
192 connector->name, bpc); in amdgpu_connector_get_monitor_bpc()
194 } else if (bpc > 8) { in amdgpu_connector_get_monitor_bpc()
198 bpc = 8; in amdgpu_connector_get_monitor_bpc()
202 if ((amdgpu_deep_color == 0) && (bpc > 8)) { in amdgpu_connector_get_monitor_bpc()
205 bpc = 8; in amdgpu_connector_get_monitor_bpc()
209 connector->name, connector->display_info.bpc, bpc); in amdgpu_connector_get_monitor_bpc()
211 return bpc; in amdgpu_connector_get_monitor_bpc()