diff options
author | Hyungwon Hwang <human.hwang@samsung.com> | 2015-08-26 11:11:07 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-12-14 13:47:49 +0900 |
commit | 18f23fe3054393b4ec761a1b94d986dcb217465f (patch) | |
tree | d5f592c7b71e0fe3fac901a2478e21a8d47490d6 /drivers/gpu/drm/exynos/exynos_drm_ipp.h | |
parent | 608a3e9ac3ed70e4737dde59d793d9a525378e6e (diff) |
drm/exynos: ipp: introduce last_buf_id
There is no reason to tie the buf idx from userspace and the real HW DMA
channel. So to separate them, the buf idx from userspace must be stored
to return the idx when the processing is done. This patch introduces
last_buf_id to store the current processing buf id for that purpose.
Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_ipp.h')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_ipp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_ipp.h b/drivers/gpu/drm/exynos/exynos_drm_ipp.h index d4f0b588220b..a09fc1152186 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_ipp.h +++ b/drivers/gpu/drm/exynos/exynos_drm_ipp.h @@ -62,6 +62,7 @@ struct drm_exynos_ipp_cmd_work { * @event_work: event work structure. * @state: state of command node. * @filp: associated file pointer. + * @last_buf_id: store the current processing frame buf id from userspace */ struct drm_exynos_ipp_cmd_node { struct list_head list; @@ -78,6 +79,7 @@ struct drm_exynos_ipp_cmd_node { struct drm_exynos_ipp_event_work *event_work; enum drm_exynos_ipp_state state; struct drm_file *filp; + unsigned int last_buf_id[EXYNOS_DRM_OPS_MAX]; }; /* |