diff options
author | Ankit Nautiyal <ankit.k.nautiyal@intel.com> | 2024-12-17 12:32:41 +0300 |
---|---|---|
committer | Ankit Nautiyal <ankit.k.nautiyal@intel.com> | 2024-12-24 12:50:01 +0300 |
commit | 160672b86b0dd734f03f9bb158c42e13b3a1bf69 (patch) | |
tree | d3ae137f9cbae4a263c1c276e0950701d4ee0b7f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | a35dc4aee37c5f5c2052735babf59062cc19c92c (diff) | |
download | linux-160672b86b0dd734f03f9bb158c42e13b3a1bf69.tar.xz |
drm/i915/dp: Use clamp for pipe_bpp limits with DSC
Currently to get the max pipe_bpp with dsc we take the min of
limits->pipe.max_bpp and dsc max bpp (dsc max bpc * 3). This can result
in problems when limits->pipe.max_bpp is less than the computed dsc min bpp
(dsc min bpc * 3).
Replace the min/max functions with clamp while computing
limits->pipe.max/min_bpp to ensure that the pipe_bpp limits are constrained
within the DSC-defined minimum and maximum values.
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241217093244.3938132-12-ankit.k.nautiyal@intel.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions