Rearrange Vulkan asserts for samplers
Change-Id: I6bbe834f0cf1ad725e1f3843b23fde958c749d8b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/277060
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
diff --git a/src/gpu/GrOpsRenderPass.cpp b/src/gpu/GrOpsRenderPass.cpp
index bf7cefb..d0f352f 100644
--- a/src/gpu/GrOpsRenderPass.cpp
+++ b/src/gpu/GrOpsRenderPass.cpp
@@ -45,6 +45,9 @@
void GrOpsRenderPass::bindPipeline(const GrProgramInfo& programInfo, const SkRect& drawBounds,
const SkIRect* optionalScissorRect) {
#ifdef SK_DEBUG
+ // Both the 'programInfo' and this renderPass have an origin. Since they come from the same
+ // place (i.e., the target renderTargetProxy) they had best agree.
+ SkASSERT(programInfo.origin() == fOrigin);
if (programInfo.primProc().hasInstanceAttributes()) {
SkASSERT(this->gpu()->caps()->instanceAttribSupport());
}