Vulkan: Fix dirty element array buffer updates.

The issue occurs that binds the same buffer and calls glDrawElements
with the same indices. The offset has been reset in the
VertexArrayVk::syncState(), but it doesn't check the actual value
in the ContextVk::setupIndexedDraw().
Also corrected case where update via BufferSubData wasn't being
sent to the HW.

Bug: angleproject:3362
Change-Id: I0f7d2fc162bc8f1c36cb09ba689fd27b482b9035
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1666345
Commit-Queue: Courtney Goeltzenleuchter <courtneygo@google.com>
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
This commit is contained in:
Courtney Goeltzenleuchter
2019-06-19 12:11:13 -06:00
committed by Commit Bot
parent 661ed41972
commit b867bc6f10
5 changed files with 349 additions and 4 deletions

View File

@@ -25,6 +25,7 @@ Google Inc.
Eric Boren
Henry Bridge
Nat Duca
Courtney Goeltzenleuchter
Peter Kasting
Vangelis Kokkevis
Zhenyao Mo