Re: [PATCH] ui/gtk-gl-area: Remove extra draw call in refresh

2025-02-14 Thread Dmitry Osipenko
On 2/14/25 18:26, Dmitry Osipenko wrote:
> On 2/14/25 17:06, Alex Bennée wrote:
>> dongwon@intel.com writes:
>>
>>> From: Dongwon Kim 
>>>
>>> This partially reverts commit 77bf310084dad38b3a2badf01766c659056f1cf2
>>> which causes some guest display corruption when gtk-gl-area
>>> is used for GTK rendering (e.g. Wayland Compositor) possibly due to
>>> simulataneous accesses on the guest frame buffer by host compositor
>>> and the guest.
>>>
>>> Reported-by: Dmitry Osipenko 
>>> Reported-by: Alex Bennée 
>>> Cc: Marc-André Lureau 
>>> Cc: Vivek Kasireddy 
>>> Signed-off-by: Dongwon Kim 
>>
>> This certainly fixes the corruption I was seeing while testing Dimitry's
>> native context patches and doesn't seem to affect the venus test modes.
>>
>> So:
>>
>> Tested-by: Alex Bennée 
>> Reviewed-by: Alex Bennée 
>>
>>> ---
>>>  ui/gtk-gl-area.c | 1 -
>>>  1 file changed, 1 deletion(-)
>>>
>>> diff --git a/ui/gtk-gl-area.c b/ui/gtk-gl-area.c
>>> index 2c9a0db425..9f7dc697f2 100644
>>> --- a/ui/gtk-gl-area.c
>>> +++ b/ui/gtk-gl-area.c
>>> @@ -129,7 +129,6 @@ void gd_gl_area_refresh(DisplayChangeListener *dcl)
>>>  
>>>  if (vc->gfx.guest_fb.dmabuf &&
>>>  qemu_dmabuf_get_draw_submitted(vc->gfx.guest_fb.dmabuf)) {
>>> -gd_gl_area_draw(vc);
>>>  return;
>>>  }
>>
> 
> Reviewed-by: Dmitry Osipenko 
> Tested-by: Dmitry Osipenko 

I now noticed that the fixes tag is missing in the commit message. It
should be added as described in [1]. Also, use the get_maintainers.pl
script to CC all interested people. Submitting patches to QEMU works
same like in Linux kernel.

[1] https://www.qemu.org/docs/master/devel/submitting-a-patch.html

-- 
Best regards,
Dmitry



Re: [PATCH] ui/gtk-gl-area: Remove extra draw call in refresh

2025-02-14 Thread Dmitry Osipenko
On 2/14/25 17:06, Alex Bennée wrote:
> dongwon@intel.com writes:
> 
>> From: Dongwon Kim 
>>
>> This partially reverts commit 77bf310084dad38b3a2badf01766c659056f1cf2
>> which causes some guest display corruption when gtk-gl-area
>> is used for GTK rendering (e.g. Wayland Compositor) possibly due to
>> simulataneous accesses on the guest frame buffer by host compositor
>> and the guest.
>>
>> Reported-by: Dmitry Osipenko 
>> Reported-by: Alex Bennée 
>> Cc: Marc-André Lureau 
>> Cc: Vivek Kasireddy 
>> Signed-off-by: Dongwon Kim 
> 
> This certainly fixes the corruption I was seeing while testing Dimitry's
> native context patches and doesn't seem to affect the venus test modes.
> 
> So:
> 
> Tested-by: Alex Bennée 
> Reviewed-by: Alex Bennée 
> 
>> ---
>>  ui/gtk-gl-area.c | 1 -
>>  1 file changed, 1 deletion(-)
>>
>> diff --git a/ui/gtk-gl-area.c b/ui/gtk-gl-area.c
>> index 2c9a0db425..9f7dc697f2 100644
>> --- a/ui/gtk-gl-area.c
>> +++ b/ui/gtk-gl-area.c
>> @@ -129,7 +129,6 @@ void gd_gl_area_refresh(DisplayChangeListener *dcl)
>>  
>>  if (vc->gfx.guest_fb.dmabuf &&
>>  qemu_dmabuf_get_draw_submitted(vc->gfx.guest_fb.dmabuf)) {
>> -gd_gl_area_draw(vc);
>>  return;
>>  }
> 

Reviewed-by: Dmitry Osipenko 
Tested-by: Dmitry Osipenko 

-- 
Best regards,
Dmitry



Re: [PATCH] ui/gtk-gl-area: Remove extra draw call in refresh

2025-02-14 Thread Alex Bennée
dongwon@intel.com writes:

> From: Dongwon Kim 
>
> This partially reverts commit 77bf310084dad38b3a2badf01766c659056f1cf2
> which causes some guest display corruption when gtk-gl-area
> is used for GTK rendering (e.g. Wayland Compositor) possibly due to
> simulataneous accesses on the guest frame buffer by host compositor
> and the guest.
>
> Reported-by: Dmitry Osipenko 
> Reported-by: Alex Bennée 
> Cc: Marc-André Lureau 
> Cc: Vivek Kasireddy 
> Signed-off-by: Dongwon Kim 

This certainly fixes the corruption I was seeing while testing Dimitry's
native context patches and doesn't seem to affect the venus test modes.

So:

Tested-by: Alex Bennée 
Reviewed-by: Alex Bennée 

> ---
>  ui/gtk-gl-area.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/ui/gtk-gl-area.c b/ui/gtk-gl-area.c
> index 2c9a0db425..9f7dc697f2 100644
> --- a/ui/gtk-gl-area.c
> +++ b/ui/gtk-gl-area.c
> @@ -129,7 +129,6 @@ void gd_gl_area_refresh(DisplayChangeListener *dcl)
>  
>  if (vc->gfx.guest_fb.dmabuf &&
>  qemu_dmabuf_get_draw_submitted(vc->gfx.guest_fb.dmabuf)) {
> -gd_gl_area_draw(vc);
>  return;
>  }

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro



[PATCH] ui/gtk-gl-area: Remove extra draw call in refresh

2025-02-06 Thread dongwon . kim
From: Dongwon Kim 

This partially reverts commit 77bf310084dad38b3a2badf01766c659056f1cf2
which causes some guest display corruption when gtk-gl-area
is used for GTK rendering (e.g. Wayland Compositor) possibly due to
simulataneous accesses on the guest frame buffer by host compositor
and the guest.

Reported-by: Dmitry Osipenko 
Reported-by: Alex Bennée 
Cc: Marc-André Lureau 
Cc: Vivek Kasireddy 
Signed-off-by: Dongwon Kim 
---
 ui/gtk-gl-area.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/ui/gtk-gl-area.c b/ui/gtk-gl-area.c
index 2c9a0db425..9f7dc697f2 100644
--- a/ui/gtk-gl-area.c
+++ b/ui/gtk-gl-area.c
@@ -129,7 +129,6 @@ void gd_gl_area_refresh(DisplayChangeListener *dcl)
 
 if (vc->gfx.guest_fb.dmabuf &&
 qemu_dmabuf_get_draw_submitted(vc->gfx.guest_fb.dmabuf)) {
-gd_gl_area_draw(vc);
 return;
 }
 
-- 
2.34.1