From: Javier Martinez Canillas <javierm@redhat.com>
To: Thomas Zimmermann <tzimmermann@suse.de>, linux-kernel@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org,
Gerd Hoffmann <kraxel@redhat.com>,
nerdopolis <bluescreen_avenger@verizon.net>,
Pekka Paalanen <pekka.paalanen@collabora.com>,
Bilal Elmoussaoui <belmouss@redhat.com>,
Maxime Ripard <mripard@kernel.org>,
stable@vger.kernel.org, Sima Vetter <daniel.vetter@ffwll.ch>,
Erico Nunes <nunes.erico@gmail.com>
Subject: Re: [PATCH 2/6] drm: Add drm_atomic_helper_buffer_damage_{iter_init, merged}() helpers
Date: Tue, 14 Nov 2023 17:05:12 +0100 [thread overview]
Message-ID: <87zfzg5nif.fsf@minerva.mail-host-address-is-not-set> (raw)
In-Reply-To: <6e663e37-b735-47f7-a841-fa0f93fdddaf@suse.de>
Thomas Zimmermann <tzimmermann@suse.de> writes:
> Hi
>
> Am 09.11.23 um 18:24 schrieb Javier Martinez Canillas:
[...]
>> struct drm_rect src;
>> memset(iter, 0, sizeof(*iter));
>> @@ -223,7 +224,8 @@ __drm_atomic_helper_damage_iter_init(struct drm_atomic_helper_damage_iter *iter,
>> iter->plane_src.x2 = (src.x2 >> 16) + !!(src.x2 & 0xFFFF);
>> iter->plane_src.y2 = (src.y2 >> 16) + !!(src.y2 & 0xFFFF);
>>
>> - if (!iter->clips || !drm_rect_equals(&state->src, &old_state->src)) {
>> + if (!iter->clips || !drm_rect_equals(&state->src, &old_state->src) ||
>> + (buffer_damage && old_state->fb != state->fb)) {
>
> I'd assume that this change effectivly disables damage handling. AFAICT
> user space often does a page flip with a new framebuffer plus damage
> data. Now, with each change of the framebuffer we ignore the damage
> information. It's not a blocker as that's the behavior before 6.4, but
> we should be aware of it.
>
Yes, which is the goal of this patch since page flip with a new framebuffer
attached to a plane plus damage information can't be supported by drivers
that do per-buffer uploads.
This was causing some weston and wlroots to have flickering artifacts, due
the framebuffers being changed since the last plane update.
For now it was decided with Sima, Simon and Pekka that is the best we can
do and the reason why I add a TODO in patch #6.
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat
next prev parent reply other threads:[~2023-11-14 16:05 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-09 17:24 [PATCH 0/6] drm: Allow the damage helpers to handle buffer damage Javier Martinez Canillas
2023-11-09 17:24 ` [PATCH 1/6] drm: Move drm_atomic_helper_damage_{iter_init,merged}() to helpers Javier Martinez Canillas
2023-11-09 17:24 ` [PATCH 2/6] drm: Add drm_atomic_helper_buffer_damage_{iter_init,merged}() helpers Javier Martinez Canillas
2023-11-14 15:43 ` Thomas Zimmermann
2023-11-14 15:58 ` Javier Martinez Canillas
2023-11-14 16:31 ` Thomas Zimmermann
2023-11-14 18:09 ` Javier Martinez Canillas
2023-11-14 15:49 ` [PATCH 2/6] drm: Add drm_atomic_helper_buffer_damage_{iter_init, merged}() helpers Thomas Zimmermann
2023-11-14 16:05 ` Javier Martinez Canillas [this message]
2023-11-16 9:20 ` Pekka Paalanen
2023-11-09 17:24 ` [PATCH 3/6] drm/virtio: Use drm_atomic_helper_buffer_damage_merged() for buffer damage Javier Martinez Canillas
2023-11-09 17:24 ` [PATCH 4/6] drm/vmwgfx: Use drm_atomic_helper_buffer_damage_iter_init() " Javier Martinez Canillas
2023-11-09 17:24 ` [PATCH 5/6] drm/plane: Extend damage tracking kernel-doc Javier Martinez Canillas
2023-11-10 10:48 ` Simon Ser
2023-11-09 17:24 ` [PATCH 6/6] drm/todo: Add entry about implementing buffer age for damage tracking Javier Martinez Canillas
2023-11-10 10:39 ` Simon Ser
2023-11-14 15:40 ` [PATCH 0/6] drm: Allow the damage helpers to handle buffer damage Thomas Zimmermann
2023-11-14 16:28 ` Javier Martinez Canillas
2023-11-14 16:36 ` Thomas Zimmermann
2023-11-14 18:06 ` Javier Martinez Canillas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zfzg5nif.fsf@minerva.mail-host-address-is-not-set \
--to=javierm@redhat.com \
--cc=belmouss@redhat.com \
--cc=bluescreen_avenger@verizon.net \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=kraxel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mripard@kernel.org \
--cc=nunes.erico@gmail.com \
--cc=pekka.paalanen@collabora.com \
--cc=stable@vger.kernel.org \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®