Pass in actual sampled texture and sample params to gpu uniform builders.
To support external textures vulkan needs to know the actual sampler it
will use at pipeline creation time. Thus we need access to the actual
vkimage and sampler state to know how to make these samplers early.
Bug: skia:
Change-Id: I8492bb283932d6800dbfcc8bc86b3bba947397fe
Reviewed-on: https://skia-review.googlesource.com/c/166281
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/vk/GrVkResourceProvider.cpp b/src/gpu/vk/GrVkResourceProvider.cpp
index 823c64a..d09dafe 100644
--- a/src/gpu/vk/GrVkResourceProvider.cpp
+++ b/src/gpu/vk/GrVkResourceProvider.cpp
@@ -197,9 +197,10 @@
}
GrVkPipelineState* GrVkResourceProvider::findOrCreateCompatiblePipelineState(
- const GrPipeline& pipeline, const GrPrimitiveProcessor& proc, GrPrimitiveType primitiveType,
+ const GrPipeline& pipeline, const GrPrimitiveProcessor& proc,
+ const GrTextureProxy* const primProcProxies[], GrPrimitiveType primitiveType,
VkRenderPass compatibleRenderPass) {
- return fPipelineStateCache->refPipelineState(proc, pipeline, primitiveType,
+ return fPipelineStateCache->refPipelineState(proc, primProcProxies, pipeline, primitiveType,
compatibleRenderPass);
}