Optimize more front-end VertexArray binding.
Improves perf slightly (1-2%) in the Vulkan VBO state change test.
Bug: angleproject:3014
Change-Id: Ia8082b5b3f5e847a6b2775e896893fa8d38c1afd
Reviewed-on: https://chromium-review.googlesource.com/c/1393904
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
diff --git a/src/libANGLE/Context.cpp b/src/libANGLE/Context.cpp
index 545a0ac..a4ae976 100644
--- a/src/libANGLE/Context.cpp
+++ b/src/libANGLE/Context.cpp
@@ -4787,7 +4787,7 @@
const void *ptr)
{
mState.setVertexAttribPointer(this, index, mState.getTargetBuffer(BufferBinding::Array), size,
- type, ConvertToBool(normalized), false, stride, ptr);
+ type, ConvertToBool(normalized), stride, ptr);
mStateCache.onVertexArrayStateChange(this);
}
@@ -4834,8 +4834,8 @@
GLsizei stride,
const void *pointer)
{
- mState.setVertexAttribPointer(this, index, mState.getTargetBuffer(BufferBinding::Array), size,
- type, false, true, stride, pointer);
+ mState.setVertexAttribIPointer(this, index, mState.getTargetBuffer(BufferBinding::Array), size,
+ type, stride, pointer);
mStateCache.onVertexArrayStateChange(this);
}