mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 08:46:45 +07:00
drm/exynos: gsc: Fix DRM_MODE_REFLECT_{X,Y} interpretation
Horizontal (DRM_MODE_REFLECT_Y) and vertical (DMR_MODE_REFLECT_Y) flip were swapped in GScaler driver. Fix this by swapping code for interpreting them. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
This commit is contained in:
parent
28b676329c
commit
4cc11a5f53
@ -523,30 +523,30 @@ static void gsc_src_set_transf(struct gsc_context *ctx, unsigned int rotation)
|
||||
|
||||
switch (degree) {
|
||||
case DRM_MODE_ROTATE_0:
|
||||
if (rotation & DRM_MODE_REFLECT_Y)
|
||||
cfg |= GSC_IN_ROT_XFLIP;
|
||||
if (rotation & DRM_MODE_REFLECT_X)
|
||||
cfg |= GSC_IN_ROT_XFLIP;
|
||||
if (rotation & DRM_MODE_REFLECT_Y)
|
||||
cfg |= GSC_IN_ROT_YFLIP;
|
||||
break;
|
||||
case DRM_MODE_ROTATE_90:
|
||||
cfg |= GSC_IN_ROT_90;
|
||||
if (rotation & DRM_MODE_REFLECT_Y)
|
||||
cfg |= GSC_IN_ROT_XFLIP;
|
||||
if (rotation & DRM_MODE_REFLECT_X)
|
||||
cfg |= GSC_IN_ROT_XFLIP;
|
||||
if (rotation & DRM_MODE_REFLECT_Y)
|
||||
cfg |= GSC_IN_ROT_YFLIP;
|
||||
break;
|
||||
case DRM_MODE_ROTATE_180:
|
||||
cfg |= GSC_IN_ROT_180;
|
||||
if (rotation & DRM_MODE_REFLECT_Y)
|
||||
cfg &= ~GSC_IN_ROT_XFLIP;
|
||||
if (rotation & DRM_MODE_REFLECT_X)
|
||||
cfg &= ~GSC_IN_ROT_XFLIP;
|
||||
if (rotation & DRM_MODE_REFLECT_Y)
|
||||
cfg &= ~GSC_IN_ROT_YFLIP;
|
||||
break;
|
||||
case DRM_MODE_ROTATE_270:
|
||||
cfg |= GSC_IN_ROT_270;
|
||||
if (rotation & DRM_MODE_REFLECT_Y)
|
||||
cfg &= ~GSC_IN_ROT_XFLIP;
|
||||
if (rotation & DRM_MODE_REFLECT_X)
|
||||
cfg &= ~GSC_IN_ROT_XFLIP;
|
||||
if (rotation & DRM_MODE_REFLECT_Y)
|
||||
cfg &= ~GSC_IN_ROT_YFLIP;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user