Commit 2bae3ed2 by Alexis Hetu Committed by Alexis Hétu

Added glTestFenceNV implementation

BUG=18355839 Change-Id: Icbded1017d98099a500d43fb8c02349a2412ddfd Reviewed-on: https://swiftshader-review.googlesource.com/1380Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarAlexis Hétu <sugoi@google.com>
parent 617a5d5e
...@@ -40,6 +40,11 @@ GLboolean Fence::isFence() ...@@ -40,6 +40,11 @@ GLboolean Fence::isFence()
void Fence::setFence(GLenum condition) void Fence::setFence(GLenum condition)
{ {
if(condition != GL_ALL_COMPLETED_NV)
{
return error(GL_INVALID_VALUE);
}
mQuery = true; mQuery = true;
mCondition = condition; mCondition = condition;
mStatus = GL_FALSE; mStatus = GL_FALSE;
...@@ -52,7 +57,9 @@ GLboolean Fence::testFence() ...@@ -52,7 +57,9 @@ GLboolean Fence::testFence()
return error(GL_INVALID_OPERATION, GL_TRUE); return error(GL_INVALID_OPERATION, GL_TRUE);
} }
UNIMPLEMENTED(); // The current assumtion is that no matter where the fence is placed, it is
// done by the time it is tested, which is similar to Context::flush(), since
// we don't queue anything without processing it as fast as possible.
mStatus = GL_TRUE; mStatus = GL_TRUE;
return mStatus; return mStatus;
......
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