Skip to content

Commit 0695d8f

Browse files
author
Thomas Zimmermann
committed
drm/mipi-dbi: 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. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Anusha Srivatsa <asrivats@redhat.com> Reviewed-by: Christian König <christian.koenig@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250226172457.217725-10-tzimmermann@suse.de
1 parent 4972532 commit 0695d8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/drm_mipi_dbi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ int mipi_dbi_buf_copy(void *dst, struct iosys_map *src, struct drm_framebuffer *
218218
switch (fb->format->format) {
219219
case DRM_FORMAT_RGB565:
220220
if (swap)
221-
drm_fb_swab(&dst_map, NULL, src, fb, clip, !gem->import_attach,
221+
drm_fb_swab(&dst_map, NULL, src, fb, clip, !drm_gem_is_imported(gem),
222222
fmtcnv_state);
223223
else
224224
drm_fb_memcpy(&dst_map, NULL, src, fb, clip);

0 commit comments

Comments
 (0)