mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 17:05:31 +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
@@ -160,11 +160,11 @@ namespace dawn_native { namespace opengl {
|
||||
return {};
|
||||
}
|
||||
|
||||
Serial Device::CheckAndUpdateCompletedSerials() {
|
||||
Serial fenceSerial = 0;
|
||||
ExecutionSerial Device::CheckAndUpdateCompletedSerials() {
|
||||
ExecutionSerial fenceSerial{0};
|
||||
while (!mFencesInFlight.empty()) {
|
||||
GLsync sync = mFencesInFlight.front().first;
|
||||
Serial tentativeSerial = mFencesInFlight.front().second;
|
||||
ExecutionSerial tentativeSerial = mFencesInFlight.front().second;
|
||||
|
||||
// Fence are added in order, so we can stop searching as soon
|
||||
// as we see one that's not ready.
|
||||
|
||||
@@ -105,11 +105,11 @@ namespace dawn_native { namespace opengl {
|
||||
const TextureViewDescriptor* descriptor) override;
|
||||
|
||||
void InitTogglesFromDriver();
|
||||
Serial CheckAndUpdateCompletedSerials() override;
|
||||
ExecutionSerial CheckAndUpdateCompletedSerials() override;
|
||||
void ShutDownImpl() override;
|
||||
MaybeError WaitForIdleForDestruction() override;
|
||||
|
||||
std::queue<std::pair<GLsync, Serial>> mFencesInFlight;
|
||||
std::queue<std::pair<GLsync, ExecutionSerial>> mFencesInFlight;
|
||||
|
||||
GLFormatTable mFormatTable;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user