drm: Fix rounding errors and use scaling in i915.
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | drm/rect: Round above 1 << 16 upwards to correct scale calculation functions.drivers/ | +16 | 0 replies | |
| 2/5 | drm/rect: Handle rounding errors in drm_rect_clip_scaled, v2.drivers/ | +52 | 0 replies | |
| 3/5 | drm/i915: Do not adjust scale when out of bounds, v2.drivers/ | +35 | 0 replies | |
| 4/5 | drm/selftests: Rename the Kconfig option to CONFIG_DRM_DEBUG_SELFTESTdrivers/ drivers/ drivers/ | +6 | 0 replies | |
| 5/5 | drm/selftests: Add drm helper selftestdrivers/ drivers/ drivers/ +1 more | +258 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] drm: Fix rounding errors and use scaling in i915.
There were some small rounding errors in when clamping with 1.0001 and 0.9999 scaling, solve these and add a testcase for drm helpers, which can be used to prevent more of these errors in the future.
The testcases helped me find an error in v1, which wouldn't have been found in another way.
Maarten Lankhorst (5):
drm/rect: Round above 1 << 16 upwards to correct scale calculation functions. drm/rect: Handle rounding errors in drm_rect_clip_scaled, v2. drm/i915: Do not adjust scale when out of bounds, v2. drm/selftests: Rename the Kconfig option to CONFIG_DRM_DEBUG_SELFTEST drm/selftests: Add drm helper selftest
drivers/gpu/drm/Kconfig | 9 +- drivers/gpu/drm/Makefile | 2 +- drivers/gpu/drm/drm_rect.c | 80 ++++-- drivers/gpu/drm/i915/intel_sprite.c | 144 +++------- drivers/gpu/drm/selftests/Makefile | 2 +- .../gpu/drm/selftests/drm_helper_selftests.h | 9 + drivers/gpu/drm/selftests/test-drm-helper.c | 247 ++++++++++++++++++ 7 files changed, 362 insertions(+), 131 deletions(-) create mode 100644 drivers/gpu/drm/selftests/drm_helper_selftests.h create mode 100644 drivers/gpu/drm/selftests/test-drm-helper.c
Signature · 6 lines
2.17.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx