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>
commitf8778249999f0b74846db1b0149e72064659b70d
parent4d02b8dc29418ece1a10a09d3a15360b94f30f80
authorTim Blechmann <tim.blechmann@qt.io>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeThu, 17 Sep 2026 10:41:19 +0000