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>