diff options
author | Carlos Eduardo Gallo Filho <[email protected]> | 2023-09-26 11:15:18 -0300 |
---|---|---|
committer | Thomas Zimmermann <[email protected]> | 2023-10-12 09:51:19 +0200 |
commit | f2f455981a34ce8ca88a41458c09494b387d344f (patch) | |
tree | c1ebcccfa2da094958fd9574f51c495a4740250a /scripts/gdb/linux/utils.py | |
parent | 052ddf7b86d2d9443bce77ef5b5b1ef61a3b79fc (diff) |
drm: Remove plane hsub/vsub alignment requirement for core helpers
The drm_format_info_plane_{height,width} functions was implemented using
regular division for the plane size calculation, which cause issues [1][2]
when used on contexts where the dimensions are misaligned with relation
to the subsampling factors. So, replace the regular division by the
DIV_ROUND_UP macro.
This allows these functions to be used in more drivers, making further
work to bring more core presence on them possible.
[1] http://patchwork.freedesktop.org/patch/msgid/[email protected]
[2] https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Carlos Eduardo Gallo Filho <[email protected]>
Reviewed-by: André Almeida <[email protected]>
Signed-off-by: Thomas Zimmermann <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions