Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+1 -1
+1 -1
drivers/gpu/drm/gud/gud_pipe.c
··· 447 447 } 448 448 449 449 /* Imported buffers are assumed to be WriteCombined with uncached reads */ 450 - gud_flush_damage(gdrm, fb, src, !fb->obj[0]->import_attach, damage); 450 + gud_flush_damage(gdrm, fb, src, !drm_gem_is_imported(fb->obj[0]), damage); 451 451 } 452 452 453 453 int gud_plane_atomic_check(struct drm_plane *plane,