Lines Matching refs:bpc
962 /* phase information not relevant for 8bpc */
1915 int intel_hdmi_tmds_clock(int clock, int bpc,
1924 * 1.5x for 12bpc
1925 * 1.25x for 10bpc
1927 return DIV_ROUND_CLOSEST(clock * bpc, 8);
1930 static bool intel_hdmi_source_bpc_possible(struct intel_display *display, int bpc)
1932 switch (bpc) {
1940 MISSING_CASE(bpc);
1946 int bpc, bool has_hdmi_sink,
1952 switch (bpc) {
1972 MISSING_CASE(bpc);
1985 int bpc;
1992 for (bpc = 12; bpc >= 8; bpc -= 2) {
1993 int tmds_clock = intel_hdmi_tmds_clock(clock, bpc, sink_format);
1995 if (!intel_hdmi_source_bpc_possible(display, bpc))
1998 if (!intel_hdmi_sink_bpc_possible(connector, bpc, has_hdmi_sink, sink_format))
2074 int bpc, bool has_hdmi_sink)
2085 if (!intel_hdmi_sink_bpc_possible(connector, bpc, has_hdmi_sink,
2093 static bool hdmi_bpc_possible(const struct intel_crtc_state *crtc_state, int bpc)
2099 if (!intel_hdmi_source_bpc_possible(display, bpc))
2104 bpc == 10 && DISPLAY_VER(display) == 11 &&
2109 return intel_hdmi_bpc_possible(crtc_state, bpc, crtc_state->has_hdmi_sink);
2117 int bpc;
2120 * pipe_bpp could already be below 8bpc due to FDI
2121 * bandwidth constraints. HDMI minimum is 8bpc however.
2123 bpc = max(crtc_state->pipe_bpp / 3, 8);
2128 * out of spec mode they will have to be satisfied with 8bpc.
2131 bpc = 8;
2133 for (; bpc >= 8; bpc -= 2) {
2134 int tmds_clock = intel_hdmi_tmds_clock(clock, bpc,
2137 if (hdmi_bpc_possible(crtc_state, bpc) &&
2141 return bpc;
2154 int bpc, clock = adjusted_mode->crtc_clock;
2159 bpc = intel_hdmi_compute_bpc(encoder, crtc_state, clock,
2161 if (bpc < 0)
2162 return bpc;
2165 intel_hdmi_tmds_clock(clock, bpc, crtc_state->sink_format);
2168 * pipe_bpp could already be below 8bpc due to
2170 * back up to the HDMI minimum 8bpc in that case.
2172 crtc_state->pipe_bpp = min(crtc_state->pipe_bpp, bpc * 3);
2175 "picking %d bpc for HDMI output (pipe bpp: %d)\n",
2176 bpc, crtc_state->pipe_bpp);
3271 /* Assuming: bpc as 8*/
3274 max_dsc_bpp = 3 * 4; /* 3*bpc/2 */
3278 max_dsc_bpp = 3 * 8; /* 3*bpc */
3282 max_dsc_bpp = 2 * 8; /* 2*bpc */