diff options
author | Kumar, Mahesh <mahesh1.kumar@intel.com> | 2016-05-17 01:52:00 +0300 |
---|---|---|
committer | Matt Roper <matthew.d.roper@intel.com> | 2016-06-01 17:37:04 +0300 |
commit | 9c2f7a9d6081072e762189a7341934d6e235cad6 (patch) | |
tree | 1a7810e7c9b84107a8c8fae72eb3fce491dc0da6 /arch/mips/oprofile/op_model_mipsxx.c | |
parent | cbcfd14b3b3583816bb3ffdd5e880a53a2d3856b (diff) | |
download | linux-9c2f7a9d6081072e762189a7341934d6e235cad6.tar.xz |
drm/i915/skl+: calculate plane pixel rate (v4)
Don't use pipe pixel rate for plane pixel rate. Calculate plane pixel according
to formula
adjusted plane_pixel_rate = adjusted pipe_pixel_rate * downscale ammount
downscale amount = max[1, src_h/dst_h] * max[1, src_w/dst_w]
if 90/270 rotation use rotated width & height
v2: use intel_plane_state->visible instead of (fb == NULL) as per Matt's
comment.
v3 (by Matt):
- Keep downscale amount in 16.16 fixed point rather than converting to
decimal fixed point.
- Store adjusted plane pixel rate in plane state instead of the plane
parameters structure that we no longer use.
v4 (by Matt):
- Significant rebasing onto latest atomic watermark work
- Don't bother storing plane pixel rate in state; just calculate it
right before the calls that make use of it.
- Fix downscale calculations to actually use width values when
computing downscale_w rather than copy/pasted height values.
Cc: matthew.d.roper@intel.com
Signed-off-by: Kumar, Mahesh <mahesh1.kumar@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Kumar Mahesh <mahesh1.kumar@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1463439121-28974-4-git-send-email-matthew.d.roper@intel.com
Diffstat (limited to 'arch/mips/oprofile/op_model_mipsxx.c')
0 files changed, 0 insertions, 0 deletions