<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi,<br>
<br>
Many thanks that you have picked it up.<br>
Unfortunately I didn't had time to work on it for a while.<br>
<br>
I am ok with what you have done, ihmo the review is going in good
direction.<br>
I will try not to miss your update of it.<br>
From my side I can say that damage rects with frame-buffer
coordinates are perfectly fine for DisplayLink case.<br>
<br>
Btw I have noticed that there is also a patch from Rob Clark that
is supplying helper for legacy dirtyfb callback.<br>
Maybe we should unify the naming of the rects. Here we have
"damage_clips", Clark's patch has 'dirty_rects' notion.<br>
On other hand existing legacy dirtyfb callback in
drm_framebuffer_funcs is also using 'clip_rects' :).</p>
<p><br>
</p>
<p>Thanks<br>
<br>
Ćukasz Spintzyk<br>
</p>
<br>
<div class="moz-cite-prefix">On 05/04/2018 01:49, Deepak Rawat
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1522885748-67122-1-git-send-email-drawat@vmware.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Hi All,<br>
<br>
This is extension to Lukasz Spintzyk earlier draft of damage
interface for drm.<br>
Bascially a new plane property is added called "DAMAGE_CLIPS"
which is simply<br>
an array of drm_rect (exported to userspace as drm_mode_rect). The
clips<br>
represents damage in framebuffer coordinate of attached fb to the
plane.<br>
<br>
Helper iterator is added to traverse the damage rectangles and get
the damage<br>
clips in framebuffer, plane or crtc coordinates as need by driver<br>
implementation. Finally a helper to reset damage in case need full
update is<br>
required. Drivers interested in page-flip with damage should call
this from<br>
atomic_check hook.<br>
<br>
With the RFC for atomic implementation of dirtyfb ioctl I was
thinking<br>
should we need to consider dirty_fb flags, especially<br>
DRM_MODE_FB_DIRTY_ANNOTATE_COPY to be passed with atomic<br>
DAMAGE_CLIPS property blob? I didn't considered that untill now.
If no driver<br>
uses that in my opinion for simplicity this can be ignored?<br>
<br>
About overlaping of damage rectangles is also not finalized. This
really<br>
depends on driver specific implementation and can be left
open-ended?<br>
<br>
My knowledge is limited to vmwgfx so would like to hear about
other driver use<br>
cases and this can be modified in keeping other drivers need.<br>
<br>
Going forward driver implementation for vmwgfx and user-space
implementation<br>
of kmscube/weston will be next step to test the changes.<br>
<br>
Thanks,<br>
Deepak<br>
<br>
Deepak Rawat (2):<br>
drm: Add helper iterator functions to iterate over plane damage.<br>
drm: Add helper to validate damage during modeset_check<br>
<br>
Lukasz Spintzyk (1):<br>
drm: Add DAMAGE_CLIPS property to plane<br>
<br>
drivers/gpu/drm/drm_atomic.c | 42 +++++++++<br>
drivers/gpu/drm/drm_atomic_helper.c | 173
++++++++++++++++++++++++++++++++++++<br>
drivers/gpu/drm/drm_mode_config.c | 5 ++<br>
drivers/gpu/drm/drm_plane.c | 12 +++<br>
include/drm/drm_atomic_helper.h | 41 +++++++++<br>
include/drm/drm_mode_config.h | 15 ++++<br>
include/drm/drm_plane.h | 16 ++++<br>
include/uapi/drm/drm_mode.h | 15 ++++<br>
8 files changed, 319 insertions(+)<br>
<br>
-- <br>
2.7.4<br>
<br>
_______________________________________________<br>
dri-devel mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:dri-devel@lists.freedesktop.org">dri-devel@lists.freedesktop.org</a><br>
<a moz-do-not-send="true" href="https://lists.freedesktop.org/mailman/listinfo/dri-devel">https://lists.freedesktop.org/mailman/listinfo/dri-devel</a><br>
</blockquote>
<br>
</body>
</html>