| Summary: | [WebGPU] Make the first few buffer mapping tests pass | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Myles C. Maxfield <mmaxfield> | ||||||||||
| Component: | WebGPU | Assignee: | Myles C. Maxfield <mmaxfield> | ||||||||||
| Status: | ASSIGNED --- | ||||||||||||
| Severity: | Normal | CC: | cdumez, esprehn+autocc, ews-watchlist, kondapallykalyan, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Bug Depends on: | 240441 | ||||||||||||
| Bug Blocks: | 240435, 240436, 240437, 240438 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Myles C. Maxfield
2022-05-08 17:34:24 PDT
Created attachment 459018 [details]
WIP
Created attachment 459028 [details]
Patch
Comment on attachment 459028 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=459028&action=review > Source/WebGPU/WebGPU/Buffer.mm:212 > + ASSERT(m_buffer.contents); We probably need some kind of zero-filling logic. Mapping a buffer for write is supposed to zero-fill it, if JS actually ends up reading the ArrayBuffer. Oh, mapping a buffer for reading on discrete GPU systems requires a call to synchronizeResource(). What if JavaScript specifies the sentinel? Created attachment 459384 [details]
Patch
Created attachment 459386 [details]
Patch
Pull request: https://github.com/WebKit/WebKit/pull/714 |