drm/gud: Test for imported buffers with drm_gem_is_imported()
Subsystems (3)
Thomas Zimmermann
maintainerPATCH 1/1 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 <[email protected]>
Cc Ruben Wauters <[email protected]>
--- drivers/gpu/drm/gud/gud_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/gud/gud_pipe.c +1 -1
@@ -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,
Signature · 1 line
2.52.0
Quoted 5 lines · Thomas Zimmermann
Instead of testing
import_attachfor imported GEM buffers, invokedrm_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]>
Quoted 17 lines
--- drivers/gpu/drm/gud/gud_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/gud/gud_pipe.c +1
-1@@ -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
maintainerHi
Am 04.03.26 um 14:50 schrieb Ruben Wauters:
Quoted 7 lines · Thomas Zimmermann
Quoted 5 lines
Instead of testing
import_attachfor imported GEM buffers, invokedrm_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
Quoted 17 lines
Quoted 17 lines
--- drivers/gpu/drm/gud/gud_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/gud/gud_pipe.c +1
-1@@ -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,
Signature · 6 lines
-- 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)