Lines Matching refs:fGpu

67 GrVkOpsRenderPass::GrVkOpsRenderPass(GrVkGpu* gpu) : fGpu(gpu) {}
82 fGpu, VK_IMAGE_LAYOUT_GENERAL, dstAccess, dstStages, false);
88 fGpu,
99 resolveAttachment->setImageLayout(fGpu,
106 fGpu,
122 vkStencil->setImageLayout(fGpu,
186 fGpu->vkCaps().mustLoadFullImageWithDiscardableMSAA();
209 if (!fGpu->beginRenderPass(fCurrentRenderPass, fFramebuffer, &clearColor, fRenderTarget,
212 fCurrentSecondaryCommandBuffer->end(fGpu);
241 fCurrentRenderPass = fGpu->resourceProvider().findRenderPass(rpHandle,
250 if (!fGpu->vkCaps().preferPrimaryOverSecondaryCommandBuffers()) {
251 SkASSERT(fGpu->cmdPool());
252 fCurrentSecondaryCommandBuffer = fGpu->cmdPool()->findOrCreateSecondaryCommandBuffer(fGpu);
257 fCurrentSecondaryCommandBuffer->begin(fGpu, fFramebuffer.get(), fCurrentRenderPass);
286 GrGpu* GrVkOpsRenderPass::gpu() { return fGpu; }
294 SkASSERT(fGpu->currentCommandBuffer());
295 return fGpu->currentCommandBuffer();
299 fGpu->loadMSAAFromResolve(this->currentCommandBuffer(), *fCurrentRenderPass,
302 fGpu->currentCommandBuffer()->nexSubpass(fGpu, SkToBool(fCurrentSecondaryCommandBuffer));
318 SkASSERT(fGpu->isDeviceLost());
333 fGpu->submitSecondaryCommandBuffer(std::move(fCurrentSecondaryCommandBuffer));
335 fGpu->endRenderPass(fRenderTarget, fOrigin, fBounds);
349 SkASSERT(fGpu == rt->getContext()->priv().getGpu());
358 if (!fGpu->currentCommandBuffer()) {
372 fGpu, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, VK_ACCESS_SHADER_READ_BIT,
398 SkASSERT(fGpu->cmdPool());
399 fCurrentSecondaryCommandBuffer.release()->recycle(fGpu->cmdPool());
428 SkASSERT(fGpu->isDeviceLost());
475 this->currentCommandBuffer()->clearAttachments(fGpu, 1, &attachment, 1, &clearRect);
481 SkASSERT(fGpu->isDeviceLost());
521 this->currentCommandBuffer()->clearAttachments(fGpu, 1, &attachment, 1, &clearRect);
569 fCurrentRenderPass = fGpu->resourceProvider().findRenderPass(rpHandle,
578 if (!fGpu->vkCaps().preferPrimaryOverSecondaryCommandBuffers() ||
580 SkASSERT(fGpu->cmdPool());
581 fCurrentSecondaryCommandBuffer = fGpu->cmdPool()->findOrCreateSecondaryCommandBuffer(fGpu);
586 fCurrentSecondaryCommandBuffer->begin(fGpu, fFramebuffer.get(), fCurrentRenderPass);
597 SkASSERT(fGpu->isDeviceLost());
601 fCurrentSecondaryCommandBuffer->end(fGpu);
602 fGpu->submitSecondaryCommandBuffer(std::move(fCurrentSecondaryCommandBuffer));
604 fGpu->endRenderPass(fRenderTarget, fOrigin, fBounds);
617 fCurrentSecondaryCommandBuffer->end(fGpu);
623 SkASSERT(fGpu->isDeviceLost());
638 fCurrentPipelineState = fGpu->resourceProvider().findOrCreateCompatiblePipelineState(
644 fCurrentPipelineState->bindPipeline(fGpu, currentCB);
651 if (!fCurrentPipelineState->setAndBindUniforms(fGpu, colorAttachment->dimensions(), programInfo,
659 fGpu, currentCB, colorAttachment->dimensions(), fOrigin,
662 GrVkPipeline::SetDynamicViewportState(fGpu, currentCB, colorAttachment->dimensions());
663 GrVkPipeline::SetDynamicBlendConstantState(fGpu, currentCB,
675 GrVkPipeline::SetDynamicScissorRectState(fGpu, this->currentCommandBuffer(),
695 check_sampled_texture(geomProcTextures[i]->peekTexture(), colorAttachment, fGpu);
698 check_sampled_texture(te.texture(), colorAttachment, fGpu);
701 check_sampled_texture(dstTexture, colorAttachment, fGpu);
704 if (!fCurrentPipelineState->setAndBindTextures(fGpu, geomProc, pipeline, geomProcTextures,
710 auto ds = fFramebuffer->colorAttachment()->inputDescSetForBlending(fGpu);
714 return fCurrentPipelineState->setAndBindInputAttachment(fGpu, std::move(ds),
726 SkASSERT(fGpu->isDeviceLost());
730 SkASSERT(!fGpu->caps()->usePrimitiveRestart()); // Ignore primitiveRestart parameter.
746 currCmdBuf->bindInputBuffer(fGpu, binding++, std::move(vertexBuffer));
751 currCmdBuf->bindInputBuffer(fGpu, binding++, std::move(instanceBuffer));
756 currCmdBuf->bindIndexBuffer(fGpu, std::move(indexBuffer));
764 SkASSERT(fGpu->isDeviceLost());
768 this->currentCommandBuffer()->draw(fGpu, vertexCount, instanceCount, baseVertex, baseInstance);
769 fGpu->stats()->incNumDraws();
776 SkASSERT(fGpu->isDeviceLost());
780 this->currentCommandBuffer()->drawIndexed(fGpu, indexCount, instanceCount,
782 fGpu->stats()->incNumDraws();
790 SkASSERT(fGpu->isDeviceLost());
793 const GrVkCaps& caps = fGpu->vkCaps();
803 fGpu, sk_ref_sp(drawIndirectBuffer), offset, currDrawCount, stride);
806 fGpu->stats()->incNumDraws();
815 SkASSERT(fGpu->isDeviceLost());
818 const GrVkCaps& caps = fGpu->vkCaps();
827 fGpu, sk_ref_sp(drawIndirectBuffer), offset, currDrawCount, stride);
830 fGpu->stats()->incNumDraws();
839 SkASSERT(fGpu->isDeviceLost());
848 fGpu->endRenderPass(fRenderTarget, fOrigin, fBounds);
852 SkASSERT(fGpu->isDeviceLost());
878 fGpu->addDrawable(std::move(drawable));
901 fGpu->currentCommandBuffer()->addResource(image->textureView());
902 fGpu->currentCommandBuffer()->addResource(image->resource());
904 fGpu->currentCommandBuffer()->addGrSurface(sk_ref_sp<const GrSurface>(texture));
908 fGpu->currentCommandBuffer()->drawBlurImage(fGpu, image, fFramebuffer->colorAttachment()->dimensions(),