ThreadLocalRhiHolder: add Vulkan support
qEnsureThreadLocalRhi() only ever tried Metal, D3D11, and OpenGL, in
that order. On Linux built without OpenGL, none of those apply, so it
always returned null even though Vulkan was compiled in and usable.
Add a Vulkan branch, tried last, that creates its own QVulkanInstance
and QRhi the same way multimediatestlib's createOffscreenVulkanRhi()
already does.
Also relax the QTEST_ASSERT(rhi) in qvideoframecolormanagement's
renderingModes(). isRhiRenderingSupported() only reports the QPA
platform's static RhiBasedRendering capability, not whether a graphics
API is actually usable at run time, so qEnsureThreadLocalRhi() can
still legitimately return null (e.g. Vulkan compiled in but no usable
ICD on the machine); skip the RHI rendering mode in that case instead
of asserting.
Pick-to: 6.12
Change-Id: Ic7cb8c141c57a924658c664b2d1f2a7e6fa53c5b
Reviewed-by: Mikko Hallamaa <mikko.hallamaa@qt.io>