diff options
| author | Steve Longerbeam <[email protected]> | 2018-08-01 19:12:17 +0000 |
|---|---|---|
| committer | Philipp Zabel <[email protected]> | 2018-08-02 09:47:39 +0000 |
| commit | 9f0ba3d92fe63fa72f88238d9dde47a38a7d8f40 (patch) | |
| tree | 2910eff025629de3a075ec1511af6505f08ace76 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | |
| parent | gpu: ipu-csi: Check for field type alternate (diff) | |
| download | kernel-9f0ba3d92fe63fa72f88238d9dde47a38a7d8f40.tar.gz kernel-9f0ba3d92fe63fa72f88238d9dde47a38a7d8f40.zip | |
gpu: ipu-v3: Fix U/V offset macros for planar 4:2:0
The U and V offset macros for planar 4:2:0 (U_OFFSET, V_OFFSET, and
UV_OFFSET), are not correct. The height component to the offset was
calculated as:
(pix->width * y / 4)
But this does not produce correct offsets for odd values of y (luma
line #). The luma line # must be decimated by two to produce the
correct U/V line #, so the correct formula is:
(pix->width * (y / 2) / 2)
Signed-off-by: Steve Longerbeam <[email protected]>
Signed-off-by: Philipp Zabel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h')
0 files changed, 0 insertions, 0 deletions
