lockFlex fills outFlexLayout->planes with pointer to global variable
ycbcrplanes, doesn't work from multiple threads.
Workaround: change the variable to thread_local.
Jira: OAM-70143, MDP-51191
Test: check memory regions mapped from different threads don't overlap
return CROS_GRALLOC_ERROR_NONE;
}
return CROS_GRALLOC_ERROR_NONE;
}
-android_flex_plane_t ycbcrplanes[3];
+thread_local android_flex_plane_t ycbcrplanes[3];
int32_t update_flex_layout(struct android_ycbcr *ycbcr, struct android_flex_layout *outFlexLayout)
{
int32_t update_flex_layout(struct android_ycbcr *ycbcr, struct android_flex_layout *outFlexLayout)
{