OSDN Git Service

drm/cirrus: Compute blit destination offset in single location
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 15 Feb 2023 16:15:01 +0000 (17:15 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 13 Mar 2023 09:35:47 +0000 (10:35 +0100)
commitd1c0cc8d0d7008856cf425c64d7203f95beed841
treec057e327b8b2d19df163363c88516c0a0459d644
parenta1eccc574f977bd21a4ec8ac54bd73a2756bd281
drm/cirrus: Compute blit destination offset in single location

The calculation for the scanout-buffer blit offset is independent
from the color format. In the one case where the current code uses
fb->pitches[0] instead of cirrus->pitch, their values are identical.
Hence merge all into a single line.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230215161517.5113-2-tzimmermann@suse.de
drivers/gpu/drm/tiny/cirrus.c