mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 10:49:14 +00:00
Use typed integers for the ExecutionSerial
This will prevent mixing it up with other serial types in the future. Bug: dawn:442 Change-Id: I74e964708acc62eb0f33127cc48f1b9a7b171d11 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/28923 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
ad4a66ec8f
commit
62139fcca7
@@ -29,7 +29,7 @@ namespace dawn_native {
|
||||
}
|
||||
|
||||
ResultOrError<UploadHandle> DynamicUploader::AllocateInternal(uint64_t allocationSize,
|
||||
Serial serial) {
|
||||
ExecutionSerial serial) {
|
||||
// Disable further sub-allocation should the request be too large.
|
||||
if (allocationSize > kRingBufferSize) {
|
||||
std::unique_ptr<StagingBufferBase> stagingBuffer;
|
||||
@@ -95,7 +95,7 @@ namespace dawn_native {
|
||||
return uploadHandle;
|
||||
}
|
||||
|
||||
void DynamicUploader::Deallocate(Serial lastCompletedSerial) {
|
||||
void DynamicUploader::Deallocate(ExecutionSerial lastCompletedSerial) {
|
||||
// Reclaim memory within the ring buffers by ticking (or removing requests no longer
|
||||
// in-flight).
|
||||
for (size_t i = 0; i < mRingBuffers.size(); ++i) {
|
||||
@@ -113,7 +113,7 @@ namespace dawn_native {
|
||||
// TODO(dawn:512): Optimize this function so that it doesn't allocate additional memory
|
||||
// when it's not necessary.
|
||||
ResultOrError<UploadHandle> DynamicUploader::Allocate(uint64_t allocationSize,
|
||||
Serial serial,
|
||||
ExecutionSerial serial,
|
||||
uint64_t offsetAlignment) {
|
||||
ASSERT(offsetAlignment > 0);
|
||||
UploadHandle uploadHandle;
|
||||
|
||||
Reference in New Issue
Block a user