mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 05:31:37 -04:00
drm/gud: Test for imported buffers with drm_gem_is_imported()
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 <tzimmermann@suse.de> Cc: Ruben Wauters <rubenru09@aol.com> Acked-by: Ruben Wauters <rubenru09@aol.com> Link: https://patch.msgid.link/20260227133113.235940-4-tzimmermann@suse.de
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user