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>