Index: src/gpu/vk/GrVkGpuCommandBuffer.cpp |
diff --git a/src/gpu/vk/GrVkGpuCommandBuffer.cpp b/src/gpu/vk/GrVkGpuCommandBuffer.cpp |
index 6c966b5fa941144b13f247c752bb089933b97764..2eb16712692b3dddf53454e0d1b01c09e188ea19 100644 |
--- a/src/gpu/vk/GrVkGpuCommandBuffer.cpp |
+++ b/src/gpu/vk/GrVkGpuCommandBuffer.cpp |
@@ -371,6 +371,12 @@ void GrVkGpuCommandBuffer::onDraw(const GrPipeline& pipeline, |
const GrVkRenderPass* renderPass = vkRT->simpleRenderPass(); |
SkASSERT(renderPass); |
+ append_sampled_images(primProc, fGpu, &fSampledImages); |
+ for (int i = 0; i < pipeline.numFragmentProcessors(); ++i) { |
+ append_sampled_images(pipeline.getFragmentProcessor(i), fGpu, &fSampledImages); |
+ } |
+ append_sampled_images(pipeline.getXferProcessor(), fGpu, &fSampledImages); |
+ |
GrPrimitiveType primitiveType = meshes[0].primitiveType(); |
sk_sp<GrVkPipelineState> pipelineState = this->prepareDrawState(pipeline, |
primProc, |
@@ -380,12 +386,6 @@ void GrVkGpuCommandBuffer::onDraw(const GrPipeline& pipeline, |
return; |
} |
- append_sampled_images(primProc, fGpu, &fSampledImages); |
- for (int i = 0; i < pipeline.numFragmentProcessors(); ++i) { |
- append_sampled_images(pipeline.getFragmentProcessor(i), fGpu, &fSampledImages); |
- } |
- append_sampled_images(pipeline.getXferProcessor(), fGpu, &fSampledImages); |
- |
for (int i = 0; i < meshCount; ++i) { |
const GrMesh& mesh = meshes[i]; |
GrMesh::Iterator iter; |