struct core_stream *stream,
struct hw_info_packet *info_packet)
{
- uint16_t i;
+ uint16_t i = 0;
enum signal_type signal = stream->signal;
+ struct dc_hdr_static_metadata hdr_metadata;
+ uint32_t data;
if (!surface)
return;
- struct dc_hdr_static_metadata hdr_metadata =
- surface->public.hdr_static_ctx;
+ hdr_metadata = surface->public.hdr_static_ctx;
if (dc_is_hdmi_signal(signal)) {
info_packet->valid = true;
i = 2;
}
- uint32_t data;
-
data = hdr_metadata.is_hdr;
info_packet->sb[i++] = data ? 0x02 : 0x00;
info_packet->sb[i++] = 0x00;
const struct pwl_params *params)
{
const struct gamma_curve *curve;
- uint32_t value = 0;
{
REG_SET_2(REGAMMA_CNTLA_START_CNTL, 0,
struct dce110_opp *opp110,
const struct clamping_and_pixel_encoding_params *params)
{
- uint32_t clamp_cntl_value = 0;
-
REG_SET_2(FMT_CLAMP_CNTL, 0,
FMT_CLAMP_DATA_EN, 0,
FMT_CLAMP_COLOR_FORMAT, 0);
static void program_formatter_reset_dig_resync_fifo(struct output_pixel_processor *opp)
{
struct dce110_opp *opp110 = TO_DCE110_OPP(opp);
- uint8_t counter = 10;
/* clear previous phase lock status*/
REG_UPDATE(FMT_CONTROL,
enum graphics_csc_adjust_type csc_adjust_type,
enum dc_color_space color_space)
{
- struct dc_context *ctx = opp110->base.ctx;
-
REG_SET(OUTPUT_CSC_CONTROL, 0,
OUTPUT_CSC_GRPH_MODE, 0);