libdrm_meson: add src crop and dst axis support [1/1]
PD#SWPL-36518
Problem:
default top and left is zero
Solution:
add src crop and dst axis support
Verify:
ak301
Change-Id: I85ba393603f13edd6faba6f16bd0be94bb7dbf8b
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
diff --git a/meson/meson_drm_kms.c b/meson/meson_drm_kms.c
index a076e85..b1306ac 100644
--- a/meson/meson_drm_kms.c
+++ b/meson/meson_drm_kms.c
@@ -454,8 +454,8 @@
/*No modeset needed in post buf, modeset will control by systemservice.*/
#endif
- drmModeAtomicAddProperty(request, plane_state->id, plane_state->crtc_x.id, 0);
- drmModeAtomicAddProperty(request, plane_state->id, plane_state->crtc_y.id, 0);
+ drmModeAtomicAddProperty(request, plane_state->id, plane_state->crtc_x.id, buf->crtc_x);
+ drmModeAtomicAddProperty(request, plane_state->id, plane_state->crtc_y.id, buf->crtc_y);
if (buf->crtc_w == 0) {
drmModeAtomicAddProperty(request, plane_state->id, plane_state->crtc_w.id, conn_state->mode.hdisplay);
} else {
@@ -468,8 +468,8 @@
drmModeAtomicAddProperty(request, plane_state->id, plane_state->crtc_h.id, buf->crtc_h);
}
- drmModeAtomicAddProperty(request, plane_state->id, plane_state->src_x.id, 0);
- drmModeAtomicAddProperty(request, plane_state->id, plane_state->src_y.id, 0);
+ drmModeAtomicAddProperty(request, plane_state->id, plane_state->src_x.id, buf->src_x);
+ drmModeAtomicAddProperty(request, plane_state->id, plane_state->src_y.id, buf->src_y);
drmModeAtomicAddProperty(request, plane_state->id, plane_state->src_w.id, buf->width << 16);
drmModeAtomicAddProperty(request, plane_state->id, plane_state->src_h.id, buf->height << 16);
drmModeAtomicAddProperty(request, plane_state->id, plane_state->fb_id.id, buf->fb_id);