video: test: Support checking copy frame buffer contents
authorAlper Nebi Yasak <alpernebiyasak@gmail.com>
Sun, 20 Aug 2023 14:46:46 +0000 (17:46 +0300)
committerSimon Glass <sjg@chromium.org>
Thu, 1 May 2025 10:30:45 +0000 (04:30 -0600)
commit6398e1149fc26828908b801569f68a18ac5ee2ab
tree63d5c6433d48e3c0eaf898c36a295a9bfdb445ea
parent02fae47be00caccef43aa33a61008ac66e0f2658
video: test: Support checking copy frame buffer contents

The video tests have a helper function to generate a pseudo-digest of
frame buffer contents, but it only does so for the main one. There is
another check that the copy frame buffer is the same as that. But
neither is enough to test if only the modified regions are copied to the
copy frame buffer, since we will want the two to be different in very
specific ways.

Add a boolean argument to the existing helper function to indicate which
frame buffer we want to inspect, and update the existing callers.

Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Link: https://lore.kernel.org/u-boot/20230821135111.3558478-3-alpernebiyasak@gmail.com/
test/dm/video.c