drm/exynos: ipp: introduce last_buf_id
authorHyungwon Hwang <human.hwang@samsung.com>
Wed, 26 Aug 2015 02:11:07 +0000 (11:11 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:47:49 +0000 (13:47 +0900)
commit18f23fe3054393b4ec761a1b94d986dcb217465f
treed5f592c7b71e0fe3fac901a2478e21a8d47490d6
parent608a3e9ac3ed70e4737dde59d793d9a525378e6e
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>
drivers/gpu/drm/exynos/exynos_drm_ipp.c
drivers/gpu/drm/exynos/exynos_drm_ipp.h