Commit 9fa54eab by Jamie Madill Committed by Commit Bot

Optimize and inline more validation.

Previously on each draw call we were checking both the instanced and non-instanced attributes for overflow. On on-instanced draw calls we don't need to do any special checks for instanced attributes. Also we can inline more into the headers. This improves draw call performance slightly. Bug: angleproject:2966 Change-Id: Idf5861d2d9daf9fffd5c84f6a1ea5b23ac8ab713 Reviewed-on: https://chromium-review.googlesource.com/c/1390357 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarMarkus Tavenrath <matavenrath@nvidia.com>
parent 4627b370
......@@ -427,7 +427,7 @@ bool ValidateDrawIndirectBase(Context *context, PrimitiveMode mode, const void *
}
// Here the third parameter 1 is only to pass the count validation.
if (!ValidateDrawBase(context, mode, 1))
if (!ValidateDrawBase(context, mode))
{
return false;
}
......
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