I reliably get an assert in check_sampled_texture() when using Skia+Vulkan.
Unfortunately I can't find a simple testcase and due to build system used
it'd be also very tedious to bisect the problem, so I do not have the
information to create a bugreport and do not know how to find out more.
The backtrace is attached. The assert is "SkASSERT(vkTex->currentLayout() ==
printing "vkTex->currentLayout()" says
VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL. The specific piece of code
triggering this is below, but as I said, this alone does not seem to be all
of it. It's the second flushAndSubmit() call that leads to the assert. The
surface and image are GPU/Vulkan. Converting the SkImage using
makeNonTextureImage() works around the problem. It is fine with chrome/m90,
the problem started after updating to chrome/m91, and it still exists with
sk_sp<SkImage> im = surface->makeImageSnapshot();
Is this enough to point to the actual problem, or how can I find out more?