mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
Remove Toggle LazyClearBufferOnFirstUse
This patch removes the Toggle LazyClearBufferOnFirstUse and uses the Toggle::LazyClearResourceOnFirstUse, which means buffer lazy initialization has been enabled by default in Dawn. BUG=dawn:414 TEST=dawn_end2end_tests Change-Id: I6b247d9442b57b6bb3cb5a2208467036fef6b293 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/27820 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
This commit is contained in:
committed by
Commit Bot service account
parent
f114a68b8f
commit
8800135793
@@ -197,7 +197,7 @@ namespace dawn_native { namespace null {
|
||||
BufferBase* destination,
|
||||
uint64_t destinationOffset,
|
||||
uint64_t size) {
|
||||
if (IsToggleEnabled(Toggle::LazyClearBufferOnFirstUse)) {
|
||||
if (IsToggleEnabled(Toggle::LazyClearResourceOnFirstUse)) {
|
||||
destination->SetIsDataInitialized();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user