On Fri, 2026-02-27 at 14:31 +0100, Thomas Zimmermann wrote:
> Instead of testing import_attach for imported GEM buffers, invoke
> drm_gem_is_imported() to do the test. The test itself does not change.
> 
> Signed-off-by: Thomas Zimmermann <[email protected]>
> Cc: Ruben Wauters <[email protected]>

Acked-by: Ruben Wauters <[email protected]>
> ---
>  drivers/gpu/drm/gud/gud_pipe.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/gud/gud_pipe.c b/drivers/gpu/drm/gud/gud_pipe.c
> index 4b77be94348d..11e7441de63b 100644
> --- a/drivers/gpu/drm/gud/gud_pipe.c
> +++ b/drivers/gpu/drm/gud/gud_pipe.c
> @@ -447,7 +447,7 @@ static void gud_fb_handle_damage(struct gud_device *gdrm, 
> struct drm_framebuffer
>       }
>  
>       /* Imported buffers are assumed to be WriteCombined with uncached reads 
> */
> -     gud_flush_damage(gdrm, fb, src, !fb->obj[0]->import_attach, damage);
> +     gud_flush_damage(gdrm, fb, src, !drm_gem_is_imported(fb->obj[0]), 
> damage);
>  }
>  
>  int gud_plane_atomic_check(struct drm_plane *plane,

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to