RE: [PATCH] drm/vkms: use bitfield op to get xrgb on compute crc

2020-03-24 Thread David Laight
From: Melissa Wen > Sent: 21 March 2020 20:37 > The previous memset operation was not correctly setting zero on the > alpha channel to compute the crc, and as a result, the > pipe-A-cursor-alpha-transparent subtest of the IGT test kms_cursor_crc > was crashing. To avoid errors of misinterpretation

[PATCH] drm/vkms: use bitfield op to get xrgb on compute crc

2020-03-21 Thread Melissa Wen
The previous memset operation was not correctly setting zero on the alpha channel to compute the crc, and as a result, the pipe-A-cursor-alpha-transparent subtest of the IGT test kms_cursor_crc was crashing. To avoid errors of misinterpretation related to endianness, this solution uses a bitfield