Fix PipelineStateOverride cullMode ignored in SubRenderPass


PipelineStateOverride sets a cull mode on the
QSSGRhiGraphicsPipelineState during pass preparation. However, all
three user-pass prepare helpers (rhiPrepareOriginalMaterialUserPass,
rhiPrepareOverrideMaterialUserPass, rhiPrepareAugmentedUserPass)
unconditionally overwrote ps.cullMode with the value from the
material, silently discarding the override.

Add a bool userSetCullMode flag to QSSGRhiGraphicsPipelineState,
placed after the existing scissor member and outside the pipeline
cache key portion of the struct. Set it to true in preparePassImpl
when a PipelineStateOverride command specifies a cull mode. Guard all
six material cullMode writes in the three helper functions so they
only run when no explicit user override is in effect.

Pick-to: 6.11
Change-Id: Id8b1df504611a97055c4912ac8a951f2e519dd63
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
commit54c620b2306223860cbbad145ca4b498f2a0d698
parentcb494b79267a2a48229a979a0368d610f480c47e
authorAndy Nichols <andy.nichols@qt.io>
committerAndy Nichols <andy.nichols@qt.io>
commit timeSat, 30 May 2026 06:57:29 +0000