* [PATCH] drm/exynos: fix source data argument for plane
@ 2015-04-16 8:43 Joonyoung Shim
2015-04-24 18:15 ` Gustavo Padovan
0 siblings, 1 reply; 3+ messages in thread
From: Joonyoung Shim @ 2015-04-16 8:43 UTC (permalink / raw)
To: dri-devel; +Cc: sw0312.kim
The exynos_update_plane function needs 16.16 fixed point source data.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
---
drivers/gpu/drm/exynos/exynos_drm_crtc.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c
index eb49195..f0bdaca 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c
@@ -127,7 +127,8 @@ static int exynos_drm_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y,
crtc_h = fb->height - y;
return exynos_update_plane(crtc->primary, crtc, fb, 0, 0,
- crtc_w, crtc_h, x, y, crtc_w, crtc_h);
+ crtc_w, crtc_h, x << 16, y << 16,
+ crtc_w << 16, crtc_h << 16);
}
static void exynos_drm_crtc_disable(struct drm_crtc *crtc)
@@ -202,8 +203,8 @@ static int exynos_drm_crtc_page_flip(struct drm_crtc *crtc,
crtc_w = fb->width - crtc->x;
crtc_h = fb->height - crtc->y;
ret = exynos_update_plane(crtc->primary, crtc, fb, 0, 0,
- crtc_w, crtc_h, crtc->x, crtc->y,
- crtc_w, crtc_h);
+ crtc_w, crtc_h, crtc->x << 16, crtc->y << 16,
+ crtc_w << 16, crtc_h << 16);
if (ret) {
crtc->primary->fb = old_fb;
spin_lock_irq(&dev->event_lock);
--
1.9.1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/exynos: fix source data argument for plane
2015-04-16 8:43 [PATCH] drm/exynos: fix source data argument for plane Joonyoung Shim
@ 2015-04-24 18:15 ` Gustavo Padovan
2015-04-27 6:56 ` Joonyoung Shim
0 siblings, 1 reply; 3+ messages in thread
From: Gustavo Padovan @ 2015-04-24 18:15 UTC (permalink / raw)
To: Joonyoung Shim; +Cc: sw0312.kim, dri-devel
Hi Joonyoung,
2015-04-16 Joonyoung Shim <jy0922.shim@samsung.com>:
> The exynos_update_plane function needs 16.16 fixed point source data.
>
> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
> ---
> drivers/gpu/drm/exynos/exynos_drm_crtc.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c
> index eb49195..f0bdaca 100644
> --- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c
> +++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c
> @@ -127,7 +127,8 @@ static int exynos_drm_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y,
> crtc_h = fb->height - y;
>
> return exynos_update_plane(crtc->primary, crtc, fb, 0, 0,
> - crtc_w, crtc_h, x, y, crtc_w, crtc_h);
> + crtc_w, crtc_h, x << 16, y << 16,
> + crtc_w << 16, crtc_h << 16);
> }
>
> static void exynos_drm_crtc_disable(struct drm_crtc *crtc)
> @@ -202,8 +203,8 @@ static int exynos_drm_crtc_page_flip(struct drm_crtc *crtc,
> crtc_w = fb->width - crtc->x;
> crtc_h = fb->height - crtc->y;
> ret = exynos_update_plane(crtc->primary, crtc, fb, 0, 0,
> - crtc_w, crtc_h, crtc->x, crtc->y,
> - crtc_w, crtc_h);
> + crtc_w, crtc_h, crtc->x << 16, crtc->y << 16,
> + crtc_w << 16, crtc_h << 16);
Assuming we are pushing the atomic patches soon we don't need the change
on this patch. I've asked about the atomic modesetting patches in the
other thread.
Gustavo
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/exynos: fix source data argument for plane
2015-04-24 18:15 ` Gustavo Padovan
@ 2015-04-27 6:56 ` Joonyoung Shim
0 siblings, 0 replies; 3+ messages in thread
From: Joonyoung Shim @ 2015-04-27 6:56 UTC (permalink / raw)
To: Gustavo Padovan, dri-devel, sw0312.kim
Hi Gustavo,
On 04/25/2015 03:15 AM, Gustavo Padovan wrote:
> Hi Joonyoung,
>
> 2015-04-16 Joonyoung Shim <jy0922.shim@samsung.com>:
>
>> The exynos_update_plane function needs 16.16 fixed point source data.
>>
>> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
>> ---
>> drivers/gpu/drm/exynos/exynos_drm_crtc.c | 7 ++++---
>> 1 file changed, 4 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c
>> index eb49195..f0bdaca 100644
>> --- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c
>> +++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c
>> @@ -127,7 +127,8 @@ static int exynos_drm_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y,
>> crtc_h = fb->height - y;
>>
>> return exynos_update_plane(crtc->primary, crtc, fb, 0, 0,
>> - crtc_w, crtc_h, x, y, crtc_w, crtc_h);
>> + crtc_w, crtc_h, x << 16, y << 16,
>> + crtc_w << 16, crtc_h << 16);
>> }
>>
>> static void exynos_drm_crtc_disable(struct drm_crtc *crtc)
>> @@ -202,8 +203,8 @@ static int exynos_drm_crtc_page_flip(struct drm_crtc *crtc,
>> crtc_w = fb->width - crtc->x;
>> crtc_h = fb->height - crtc->y;
>> ret = exynos_update_plane(crtc->primary, crtc, fb, 0, 0,
>> - crtc_w, crtc_h, crtc->x, crtc->y,
>> - crtc_w, crtc_h);
>> + crtc_w, crtc_h, crtc->x << 16, crtc->y << 16,
>> + crtc_w << 16, crtc_h << 16);
>
> Assuming we are pushing the atomic patches soon we don't need the change
> on this patch. I've asked about the atomic modesetting patches in the
> other thread.
>
Yeah, but this fixed patch needs until merged your atomic patches, if
not, i cannot output updated screen from primary plane on current
exynos drm driver.
Thanks.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-27 6:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-16 8:43 [PATCH] drm/exynos: fix source data argument for plane Joonyoung Shim
2015-04-24 18:15 ` Gustavo Padovan
2015-04-27 6:56 ` Joonyoung Shim
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.