diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2022-01-18 11:23:42 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2022-02-11 15:44:31 +0200 |
commit | 759d4fff3d2d70d6b689a9f1f7eb4488df337fbd (patch) | |
tree | c1cf58b078e101489cf6d544b5769f4e72d5d25e /arch/sparc | |
parent | 8a84e7a176c0a02a97f64ace508c1f2546c30bf6 (diff) |
drm/i915: Fix plane relative_data_rate calculation
We are currently computing the relative data rates as
src_size * scale_factor where scale_factor is src_size / dst_size.
Thus relative data rate is src_size * src_size / dst_size,
which is just utter nonsense. What we really seem to want is
just a reasonable estimate on how much data will be fetched
which is just src_size. So let's do that instead.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220118092354.11631-4-ville.syrjala@linux.intel.com
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Diffstat (limited to 'arch/sparc')
0 files changed, 0 insertions, 0 deletions