UserRenderPass: rebuild render target when renderTargetFlags change


The needsBuild check in the user pass preparation only looked at texture
size, format, and attachment-count changes. When renderTargetFlags changed
at runtime (e.g. toggling PreserveColorContents via QML), the existing
QRhiTextureRenderTarget stayed alive with the old flags, so the change
had no effect.

On Metal the load/store actions derived from PreserveColorContents are
encoded when the QRhiRenderPassDescriptor is created, so the render target
must be rebuilt whenever the flags differ from what is currently built.

Pick-to: 6.12 6.11
Change-Id: I71055b86cf8571edb847de5b204970a5f9299759
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
commite69f8879f8e05f5d742bf93ff44ed913c544d517
parent2cf4694901abfe196538f6116a33d44369930d18
authorChristian Strømme <christian.stromme@qt.io>
committerChristian Strømme <christian.stromme@qt.io>
commit timeTue, 2 Jun 2026 11:57:48 +0000