Hi

Am 04.03.26 um 14:50 schrieb Ruben Wauters:
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]>

Thanks. I've added the patch in time for this week's pull request of drm-misc-next.

Best regards
Thomas

---
  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,

--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com
GF: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 36809, AG Nürnberg)


Reply via email to