Commit 09861911 authored by Melissa Wen's avatar Melissa Wen Committed by Daniel Vetter

drm/vkms: fix xrgb on compute crc

The previous memset operation was not correctly zeroing the alpha
channel to compute the crc, and as a result, the IGT subtest
kms_cursor_crc/pipe-A-cursor-alpha-transparent fails.

Fixes: db7f419c ("drm/vkms: Compute CRC with Cursor Plane")
Signed-off-by: default avatarMelissa Wen <melissa.srw@gmail.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200730202524.5upzuh4irboru7my@smtp.gmail.com
parent 07c913c4
...@@ -33,7 +33,7 @@ static uint32_t compute_crc(void *vaddr_out, struct vkms_composer *composer) ...@@ -33,7 +33,7 @@ static uint32_t compute_crc(void *vaddr_out, struct vkms_composer *composer)
+ (i * composer->pitch) + (i * composer->pitch)
+ (j * composer->cpp); + (j * composer->cpp);
/* XRGB format ignores Alpha channel */ /* XRGB format ignores Alpha channel */
memset(vaddr_out + src_offset + 24, 0, 8); bitmap_clear(vaddr_out + src_offset, 24, 8);
crc = crc32_le(crc, vaddr_out + src_offset, crc = crc32_le(crc, vaddr_out + src_offset,
sizeof(u32)); sizeof(u32));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment