Clobber last read and all barriers... because all we have is DANGER, DANGER, WILL ROBINSON!!! if the last_reads/last_write were unsafe, we've reported them, in either case the prior access is irrelevant. We can overwrite them as *this* write is now after them.
| 595 | // if the last_reads/last_write were unsafe, we've reported them, in either case the prior access is irrelevant. |
| 596 | // We can overwrite them as *this* write is now after them. |
| 597 | void AccessState::SetWrite(SyncAccessIndex access_index, const AttachmentAccess& attachment_access, ResourceUsageTagEx tag_ex, |
| 598 | SyncFlags flags) { |
| 599 | ClearRead(); |
| 600 | if (!last_write.has_value()) { |
| 601 | last_write.emplace(); |
| 602 | } |
| 603 | last_write->Set(access_index, attachment_access, tag_ex, flags); |
| 604 | } |
| 605 | |
| 606 | void AccessState::ClearWrite() { last_write.reset(); } |
| 607 |