aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorAyan Kumar Halder <[email protected]>2018-08-17 17:54:00 +0100
committerAyan Kumar Halder <[email protected]>2018-08-20 14:13:43 +0100
commitc76abab59b3cb34a0bc819595614844ed28be721 (patch)
tree5fa0799b2ad42b42c9a9bd5604375160a176ff52 /scripts/gcc-plugins/sancov_plugin.c
parent065e8c8ff0c7948bc6452f88f0acc488be206b5d (diff)
drm: Use horizontal and vertical chroma subsampling factor while calculating offsets in the physical address of framebuffer
For multi-planar formats, while calculating offsets in planes with index greater than 0 (ie second plane, third plane, etc), one needs to divide (src_x * cpp) with horizontal chroma subsampling factor and (src_y * pitch) with vertical chroma subsampling factor. The reason being that the planes contain subsampled (ie reduced) data (by a factor of 2) and thus while calculating the byte position coresponding to the x and y co-ordinates, one needs to divide it with the sampling factor. Signed-off-by: Ayan Kumar halder <[email protected]> Reviewed-by: Liviu Dudau <[email protected]> Link: https://patchwork.kernel.org/patch/10569263/
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions