Commit 4038679a by Jamie Madill Committed by Commit Bot

Vulkan: Don't invalidate index buffers on vertex change.

The vertex state should not affect index state changes. Split off from a larger CL. Bug: angleproject:4622 Change-Id: Ie7c3148a16b5da89b79d95e1de130a1ff0e6c634 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2233404Reviewed-by: 's avatarTim Van Patten <timvp@google.com> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent e9a0cb87
...@@ -316,7 +316,8 @@ class ContextVk : public ContextImpl, public vk::Context ...@@ -316,7 +316,8 @@ class ContextVk : public ContextImpl, public vk::Context
angle::FormatID format, angle::FormatID format,
GLuint relativeOffset) GLuint relativeOffset)
{ {
invalidateVertexAndIndexBuffers(); invalidateCurrentGraphicsPipeline();
mGraphicsDirtyBits.set(DIRTY_BIT_VERTEX_BUFFERS);
// Set divisor to 1 for attribs with emulated divisor // Set divisor to 1 for attribs with emulated divisor
mGraphicsPipelineDesc->updateVertexInput( mGraphicsPipelineDesc->updateVertexInput(
&mGraphicsPipelineTransition, static_cast<uint32_t>(attribIndex), stride, &mGraphicsPipelineTransition, static_cast<uint32_t>(attribIndex), stride,
......
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