Update GrVkRenderPasses to be created to support both input attachments and adv blend.

Bug: skia:10409
Change-Id: I90c83e03616b76adb887c087f7f22941bd776d8c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/316356
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/GrOpsTask.cpp b/src/gpu/GrOpsTask.cpp
index ac42304..64145d4 100644
--- a/src/gpu/GrOpsTask.cpp
+++ b/src/gpu/GrOpsTask.cpp
@@ -469,7 +469,7 @@
         const SkIRect& bounds, GrLoadOp colorLoadOp, const SkPMColor4f& loadClearColor,
         GrLoadOp stencilLoadOp, GrStoreOp stencilStoreOp,
         const SkTArray<GrSurfaceProxy*, true>& sampledProxies,
-        bool usesXferBarriers) {
+        GrXferBarrierFlags renderPassXferBarriers) {
     const GrOpsRenderPass::LoadAndStoreInfo kColorLoadStoreInfo {
         colorLoadOp,
         GrStoreOp::kStore,
@@ -488,7 +488,7 @@
 
     return gpu->getOpsRenderPass(rt, stencil, origin, bounds,
                                  kColorLoadStoreInfo, stencilLoadAndStoreInfo, sampledProxies,
-                                 usesXferBarriers);
+                                 renderPassXferBarriers);
 }
 
 // TODO: this is where GrOp::renderTarget is used (which is fine since it
@@ -573,7 +573,8 @@
     GrOpsRenderPass* renderPass = create_render_pass(
             flushState->gpu(), proxy->peekRenderTarget(), stencil, this->target(0).origin(),
             fClippedContentBounds, fColorLoadOp, fLoadClearColor, stencilLoadOp, stencilStoreOp,
-            fSampledProxies, fRenderPassXferBarriers != GrXferBarrierFlags::kNone);
+            fSampledProxies, fRenderPassXferBarriers);
+
     if (!renderPass) {
         return false;
     }