Commit 58337799 by Geoff Lang Committed by Commit Bot

Correctly initialize the condition of FenceSync objects.

The spec says that the initial condition of a FenceSync object should be GL_SYNC_GPU_COMMANDS_COMPLETE. Make sure this is set in case the condition is queried before the fence is set. TEST=conformance2/state/gl-object-get-calls.html BUG=602688 Change-Id: I8c0451fc996c175109541f337191cc1be4b813e3 Reviewed-on: https://chromium-review.googlesource.com/457452Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 46258e1f
...@@ -75,7 +75,7 @@ Error FenceNV::finish() ...@@ -75,7 +75,7 @@ Error FenceNV::finish()
} }
FenceSync::FenceSync(rx::FenceSyncImpl *impl, GLuint id) FenceSync::FenceSync(rx::FenceSyncImpl *impl, GLuint id)
: RefCountObject(id), mFence(impl), mLabel(), mCondition(GL_NONE), mFlags(0) : RefCountObject(id), mFence(impl), mLabel(), mCondition(GL_SYNC_GPU_COMMANDS_COMPLETE), mFlags(0)
{ {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment