video: test: Split copy frame buffer check into a function
authorAlper Nebi Yasak <alpernebiyasak@gmail.com>
Fri, 18 Aug 2023 10:31:36 +0000 (13:31 +0300)
committerSimon Glass <sjg@chromium.org>
Thu, 1 May 2025 10:30:43 +0000 (04:30 -0600)
commit02fae47be00caccef43aa33a61008ac66e0f2658
treea2c2ab6e621a98c8e10d68d05ee59ab1f6b9509d
parentaa96cda0a58f4d181b81a897b0b9fea3d9729478
video: test: Split copy frame buffer check into a function

While checking frame buffer contents, the video tests also check if the
copy frame buffer contents match the main frame buffer. To test if only
the modified regions are updated after a sync, we will need to create
situations where the two are mismatched. Split this check into another
function that we can skip calling, since we won't want it to error on
those mismatched cases.

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-2-alpernebiyasak@gmail.com/
test/dm/video.c