Lines Matching refs:bpc

104 	int bpc = 8;  in amdgpu_connector_get_monitor_bpc()  local
112 if (connector->display_info.bpc) in amdgpu_connector_get_monitor_bpc()
113 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc()
120 if (connector->display_info.bpc) in amdgpu_connector_get_monitor_bpc()
121 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc()
129 if (connector->display_info.bpc) in amdgpu_connector_get_monitor_bpc()
130 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc()
135 if (connector->display_info.bpc) in amdgpu_connector_get_monitor_bpc()
136 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc()
145 bpc = 6; in amdgpu_connector_get_monitor_bpc()
147 bpc = 8; in amdgpu_connector_get_monitor_bpc()
159 if (bpc > 12) { in amdgpu_connector_get_monitor_bpc()
161 connector->name, bpc); in amdgpu_connector_get_monitor_bpc()
162 bpc = 12; in amdgpu_connector_get_monitor_bpc()
177 if ((bpc == 12) && (mode_clock * 3/2 > max_tmds_clock)) { in amdgpu_connector_get_monitor_bpc()
180 bpc = 10; in amdgpu_connector_get_monitor_bpc()
182 bpc = 8; in amdgpu_connector_get_monitor_bpc()
185 connector->name, bpc); in amdgpu_connector_get_monitor_bpc()
188 if ((bpc == 10) && (mode_clock * 5/4 > max_tmds_clock)) { in amdgpu_connector_get_monitor_bpc()
189 bpc = 8; in amdgpu_connector_get_monitor_bpc()
191 connector->name, bpc); in amdgpu_connector_get_monitor_bpc()
193 } else if (bpc > 8) { in amdgpu_connector_get_monitor_bpc()
197 bpc = 8; in amdgpu_connector_get_monitor_bpc()
201 if ((amdgpu_deep_color == 0) && (bpc > 8)) { in amdgpu_connector_get_monitor_bpc()
204 bpc = 8; in amdgpu_connector_get_monitor_bpc()
208 connector->name, connector->display_info.bpc, bpc); in amdgpu_connector_get_monitor_bpc()
210 return bpc; in amdgpu_connector_get_monitor_bpc()