-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.4.2
-
None
When using a shader effect that depends on a previous texture, the extra texture appears to be cleared to pure magenta on creation, but only on Apple Silicon/Ventura.
This does not occur with Qt 5 (tested with 5.15.3). The documentation states that an extra texture is created and it may make sense to ensure this is cleared on creation.
I have attached minimal examples for Qt 5 and Qt 6.
Expected output (this is seen on Apple Intel/Monterey and Windows 11):

Actual output on Apple Silicon/Ventura:

| For Gerrit Dashboard: QTBUG-112355 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 649915,7 | sg: Fix layers with recursive and MSAA | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 650165,3 | rhi: metal: Handle MSAA backing textures like other textures | dev | qt/qtbase | Status: MERGED | +2 | +1 |
| 650381,9 | sg: Fix recursive layers losing the previous texture | dev | qt/qtdeclarative | Status: MERGED | +2 | +1 |
| 652040,2 | rhi: metal: Handle MSAA backing textures like other textures | 6.10 | qt/qtbase | Status: MERGED | +2 | 0 |
| 652049,2 | sg: Fix layers with recursive and MSAA | 6.10 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 652051,2 | sg: Fix recursive layers losing the previous texture | 6.10 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 652086,2 | rhi: metal: Handle MSAA backing textures like other textures | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
| 652102,2 | sg: Fix layers with recursive and MSAA | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 652104,2 | sg: Fix recursive layers losing the previous texture | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 652357,2 | rhi: metal: Handle MSAA backing textures like other textures | tqtc/lts-6.8 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
| 652985,2 | sg: Fix layers with recursive and MSAA | tqtc/lts-6.8 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
| 652986,2 | sg: Fix recursive layers losing the previous texture | tqtc/lts-6.8 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |