mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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
This commit is contained in:
parent
4972532ccd
commit
0695d8fc11
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ int mipi_dbi_buf_copy(void *dst, struct iosys_map *src, struct drm_framebuffer *
|
|||
switch (fb->format->format) {
|
||||
case DRM_FORMAT_RGB565:
|
||||
if (swap)
|
||||
drm_fb_swab(&dst_map, NULL, src, fb, clip, !gem->import_attach,
|
||||
drm_fb_swab(&dst_map, NULL, src, fb, clip, !drm_gem_is_imported(gem),
|
||||
fmtcnv_state);
|
||||
else
|
||||
drm_fb_memcpy(&dst_map, NULL, src, fb, clip);
|
||||
|
|
Loading…
Add table
Reference in a new issue