diff options
| author | Lucas De Marchi <[email protected]> | 2022-02-16 17:41:32 +0000 |
|---|---|---|
| committer | Lucas De Marchi <[email protected]> | 2022-02-20 03:23:52 +0000 |
| commit | cccd73d607fee52f35b4b030408fa5f6c21ef503 (patch) | |
| tree | 163fafecc16237121f4c73666b75ad670818c425 /drivers/gpu/drm/drm_fb_helper.c | |
| parent | drm/i915/dg2: Enable 5th port (diff) | |
| download | kernel-cccd73d607fee52f35b4b030408fa5f6c21ef503.tar.gz kernel-cccd73d607fee52f35b4b030408fa5f6c21ef503.zip | |
iosys-map: Add offset to iosys_map_memcpy_to()
In certain situations it's useful to be able to write to an
offset of the mapping. Add a dst_offset to iosys_map_memcpy_to().
Cc: Sumit Semwal <[email protected]>
Cc: Christian König <[email protected]>
Cc: Thomas Zimmermann <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Lucas De Marchi <[email protected]>
Reviewed-by: Christian König <[email protected]>
Reviewed-by: Thomas Zimmermann <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/drm_fb_helper.c')
| -rw-r--r-- | drivers/gpu/drm/drm_fb_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index e9a9d35fbf5e..6f72627369f8 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c @@ -385,7 +385,7 @@ static void drm_fb_helper_damage_blit_real(struct drm_fb_helper *fb_helper, iosys_map_incr(dst, offset); /* go to first pixel within clip rect */ for (y = clip->y1; y < clip->y2; y++) { - iosys_map_memcpy_to(dst, src, len); + iosys_map_memcpy_to(dst, 0, src, len); iosys_map_incr(dst, fb->pitches[0]); src += fb->pitches[0]; } |
