Index: src/gpu/vk/GrVkPipelineStateDataManager.cpp |
diff --git a/src/gpu/vk/GrVkPipelineStateDataManager.cpp b/src/gpu/vk/GrVkPipelineStateDataManager.cpp |
index c72f209a218a8daef9c72384d2cb28f55be8279f..638fdba365121c38e2c1bbac24b81b05c55f69b6 100644 |
--- a/src/gpu/vk/GrVkPipelineStateDataManager.cpp |
+++ b/src/gpu/vk/GrVkPipelineStateDataManager.cpp |
@@ -248,24 +248,12 @@ bool GrVkPipelineStateDataManager::uploadUniformBuffers(const GrVkGpu* gpu, |
GrVkUniformBuffer* fragmentBuffer) const { |
bool updatedBuffer = false; |
if (vertexBuffer && fVertexUniformsDirty) { |
- vertexBuffer->addMemoryBarrier(gpu, |
- VK_ACCESS_UNIFORM_READ_BIT, |
- VK_ACCESS_HOST_WRITE_BIT, |
- VK_PIPELINE_STAGE_VERTEX_SHADER_BIT, |
- VK_PIPELINE_STAGE_HOST_BIT, |
- false); |
SkAssertResult(vertexBuffer->updateData(gpu, fVertexUniformData.get(), fVertexUniformSize, |
&updatedBuffer)); |
fVertexUniformsDirty = false; |
} |
if (fragmentBuffer && fFragmentUniformsDirty) { |
- fragmentBuffer->addMemoryBarrier(gpu, |
- VK_ACCESS_UNIFORM_READ_BIT, |
- VK_ACCESS_HOST_WRITE_BIT, |
- VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, |
- VK_PIPELINE_STAGE_HOST_BIT, |
- false); |
SkAssertResult(fragmentBuffer->updateData(gpu, fFragmentUniformData.get(), |
fFragmentUniformSize, &updatedBuffer)); |
fFragmentUniformsDirty = false; |