mirror of
https://github.com/torvalds/linux.git
synced 2026-10-30 14:06:03 +01:00
drm/amd/display: Re-enable multi-dwb support
[WHY&HOW] DCN5+ supports multi-dwb per stream. Reviewed-by: Dillon Varone <dillon.varone@amd.com> Signed-off-by: Dillon Varone <Dillon.Varone@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
86cc88af18
commit
61ba35abd8
|
|
@ -4225,9 +4225,9 @@ static double dcn5_calculate_writeback_latency_hiding_us(
|
|||
unsigned int dwb_index)
|
||||
{
|
||||
double byte_per_pixel_luma_in_buffer = 1.0;
|
||||
double buffer_for_luma_bytes = (double)writeback_buffer_size_bytes * 1024.0;
|
||||
double buffer_for_luma_bytes = (double)writeback_buffer_size_bytes;
|
||||
double line_time_us = (double)display_cfg->stream_descriptors[stream_index].timing.h_total /
|
||||
(double)display_cfg->stream_descriptors[stream_index].timing.pixel_clock_khz / 1000.0;
|
||||
((double)display_cfg->stream_descriptors[stream_index].timing.pixel_clock_khz / 1000.0);
|
||||
|
||||
if (display_cfg->stream_descriptors[stream_index].writeback.writeback_stream[dwb_index].pixel_format == dml2_444_64) {
|
||||
byte_per_pixel_luma_in_buffer = 8.0;
|
||||
|
|
|
|||
|
|
@ -992,11 +992,6 @@ static bool dcn5_ms_check_writeback_count_support(
|
|||
for (stream_idx = 0; stream_idx < display_cfg->num_streams; stream_idx++) {
|
||||
totalNumberOfActiveWriteback +=
|
||||
display_cfg->stream_descriptors[stream_idx].writeback.active_writebacks_per_stream;
|
||||
|
||||
/* >1 writeback per stream is currently not supported */
|
||||
if (display_cfg->stream_descriptors[stream_idx].writeback.active_writebacks_per_stream > 1) {
|
||||
writeback_per_stream_supported = false;
|
||||
}
|
||||
}
|
||||
|
||||
return writeback_per_stream_supported &&
|
||||
|
|
|
|||
|
|
@ -1292,10 +1292,6 @@ static bool dcn6_ms_check_writeback_count_support(
|
|||
|
||||
totalNumberOfActiveWriteback +=
|
||||
display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_index].writeback.active_writebacks_per_stream;
|
||||
|
||||
/* >1 writeback per stream is currently not supported */
|
||||
if (display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_index].writeback.active_writebacks_per_stream > 1)
|
||||
writeback_per_stream_supported = false;
|
||||
}
|
||||
outputs->support.EnoughWritebackUnits = writeback_per_stream_supported &&
|
||||
totalNumberOfActiveWriteback <= ip->max_num_wb;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user