Bug 241417 - Multisampled renderbuffer loses content when switched
Summary: Multisampled renderbuffer loses content when switched
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: Safari 15
Hardware: iPhone / iPad iOS 15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-06-08 07:38 PDT by Juraj Bleho
Modified: 2022-06-15 07:39 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juraj Bleho 2022-06-08 07:38:26 PDT
I guess GPU uses internal memory for rendering output. This output is copied into main memory when switching to different render target. When using MS render buffer data are copied out only after first use.
Steps to reproduce:
1. create multisampled renderbuffer (color/depth doesn't matter)
2. render something into this render buffer
3. switch to different framebuffer
4. switch back to previous multisampled render buffer
5. render something else (overwrite data from step 2)
6. switch to different framebuffer
7. read data from multisampled renderbuffer and observe that it contains data from step 2 instead of data from step 5.

Also noticed that gl.clear doesn't work with MS render buffer.
Comment 1 Kenneth Russell 2022-06-10 16:43:22 PDT
Please provide a self-contained test case and please tell us on exactly what hardware and which version of Safari the problem is reproduced. Thanks.
Comment 2 Radar WebKit Bug Importer 2022-06-15 07:39:12 PDT
<rdar://problem/95201546>