Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Revert "drm/amd/display: Copy stream updates onto streams"

This reverts commit 6e5155ae6b66054db35d8f3c64f9863b9d0466c1.

Revert this to apply the version that includes DCN2 support.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

-69
-69
drivers/gpu/drm/amd/display/dc/core/dc.c
··· 1607 1607 *srf_update->coeff_reduction_factor; 1608 1608 } 1609 1609 1610 - static void copy_stream_update_to_stream(struct dc *dc, 1611 - struct dc_state *context, 1612 - struct dc_stream_state *stream, 1613 - const struct dc_stream_update *update) 1614 - { 1615 - if (update == NULL || stream == NULL) 1616 - return; 1617 - 1618 - if (update->src.height && update->src.width) 1619 - stream->src = update->src; 1620 - 1621 - if (update->dst.height && update->dst.width) 1622 - stream->dst = update->dst; 1623 - 1624 - if (update->out_transfer_func && 1625 - stream->out_transfer_func != update->out_transfer_func) { 1626 - stream->out_transfer_func->sdr_ref_white_level = 1627 - update->out_transfer_func->sdr_ref_white_level; 1628 - stream->out_transfer_func->tf = update->out_transfer_func->tf; 1629 - stream->out_transfer_func->type = 1630 - update->out_transfer_func->type; 1631 - memcpy(&stream->out_transfer_func->tf_pts, 1632 - &update->out_transfer_func->tf_pts, 1633 - sizeof(struct dc_transfer_func_distributed_points)); 1634 - } 1635 - 1636 - if (update->hdr_static_metadata) 1637 - stream->hdr_static_metadata = *update->hdr_static_metadata; 1638 - 1639 - if (update->abm_level) 1640 - stream->abm_level = *update->abm_level; 1641 - 1642 - if (update->periodic_interrupt0) 1643 - stream->periodic_interrupt0 = *update->periodic_interrupt0; 1644 - 1645 - if (update->periodic_interrupt1) 1646 - stream->periodic_interrupt1 = *update->periodic_interrupt1; 1647 - 1648 - if (update->gamut_remap) 1649 - stream->gamut_remap_matrix = *update->gamut_remap; 1650 - 1651 - /* Note: this being updated after mode set is currently not a use case 1652 - * however if it arises OCSC would need to be reprogrammed at the 1653 - * minimum 1654 - */ 1655 - if (update->output_color_space) 1656 - stream->output_color_space = *update->output_color_space; 1657 - 1658 - if (update->output_csc_transform) 1659 - stream->csc_color_matrix = *update->output_csc_transform; 1660 - 1661 - if (update->vrr_infopacket) 1662 - stream->vrr_infopacket = *update->vrr_infopacket; 1663 - 1664 - if (update->dpms_off) 1665 - stream->dpms_off = *update->dpms_off; 1666 - 1667 - if (update->vsc_infopacket) 1668 - stream->vsc_infopacket = *update->vsc_infopacket; 1669 - 1670 - if (update->vsp_infopacket) 1671 - stream->vsp_infopacket = *update->vsp_infopacket; 1672 - 1673 - if (update->dither_option) 1674 - stream->dither_option = *update->dither_option; 1675 - } 1676 - 1677 1610 static void commit_planes_do_stream_update(struct dc *dc, 1678 1611 struct dc_stream_state *stream, 1679 1612 struct dc_stream_update *stream_update, ··· 1856 1923 } 1857 1924 } 1858 1925 } 1859 - 1860 - copy_stream_update_to_stream(dc, context, stream, stream_update); 1861 1926 1862 1927 commit_planes_for_stream( 1863 1928 dc,