• Home
  • Raw
  • Download

Lines Matching refs:fGpu

64 GrVkOpsRenderPass::GrVkOpsRenderPass(GrVkGpu* gpu) : fGpu(gpu) {}  in GrVkOpsRenderPass()
79 fGpu, VK_IMAGE_LAYOUT_GENERAL, dstAccess, dstStages, false); in setAttachmentLayouts()
85 fGpu, in setAttachmentLayouts()
96 resolveAttachment->setImageLayout(fGpu, in setAttachmentLayouts()
103 fGpu, in setAttachmentLayouts()
119 vkStencil->setImageLayout(fGpu, in setAttachmentLayouts()
183 fGpu->vkCaps().mustLoadFullImageWithDiscardableMSAA(); in beginRenderPass()
206 if (!fGpu->beginRenderPass(fCurrentRenderPass, fFramebuffer, &clearColor, fRenderTarget, in beginRenderPass()
209 fCurrentSecondaryCommandBuffer->end(fGpu); in beginRenderPass()
238 fCurrentRenderPass = fGpu->resourceProvider().findRenderPass(rpHandle, in init()
247 if (!fGpu->vkCaps().preferPrimaryOverSecondaryCommandBuffers()) { in init()
248 SkASSERT(fGpu->cmdPool()); in init()
249 fCurrentSecondaryCommandBuffer = fGpu->cmdPool()->findOrCreateSecondaryCommandBuffer(fGpu); in init()
254 fCurrentSecondaryCommandBuffer->begin(fGpu, fFramebuffer.get(), fCurrentRenderPass); in init()
283 GrGpu* GrVkOpsRenderPass::gpu() { return fGpu; } in gpu()
291 SkASSERT(fGpu->currentCommandBuffer()); in currentCommandBuffer()
292 return fGpu->currentCommandBuffer(); in currentCommandBuffer()
296 fGpu->loadMSAAFromResolve(this->currentCommandBuffer(), *fCurrentRenderPass, in loadResolveIntoMSAA()
299 fGpu->currentCommandBuffer()->nexSubpass(fGpu, SkToBool(fCurrentSecondaryCommandBuffer)); in loadResolveIntoMSAA()
315 SkASSERT(fGpu->isDeviceLost()); in submit()
330 fGpu->submitSecondaryCommandBuffer(std::move(fCurrentSecondaryCommandBuffer)); in submit()
332 fGpu->endRenderPass(fRenderTarget, fOrigin, fBounds); in submit()
346 SkASSERT(fGpu == rt->getContext()->priv().getGpu()); in set()
355 if (!fGpu->currentCommandBuffer()) { in set()
369 fGpu, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, VK_ACCESS_SHADER_READ_BIT, in set()
395 SkASSERT(fGpu->cmdPool()); in reset()
396 fCurrentSecondaryCommandBuffer.release()->recycle(fGpu->cmdPool()); in reset()
425 SkASSERT(fGpu->isDeviceLost()); in onClearStencilClip()
472 this->currentCommandBuffer()->clearAttachments(fGpu, 1, &attachment, 1, &clearRect); in onClearStencilClip()
478 SkASSERT(fGpu->isDeviceLost()); in onClear()
518 this->currentCommandBuffer()->clearAttachments(fGpu, 1, &attachment, 1, &clearRect); in onClear()
566 fCurrentRenderPass = fGpu->resourceProvider().findRenderPass(rpHandle, in addAdditionalRenderPass()
575 if (!fGpu->vkCaps().preferPrimaryOverSecondaryCommandBuffers() || in addAdditionalRenderPass()
577 SkASSERT(fGpu->cmdPool()); in addAdditionalRenderPass()
578 fCurrentSecondaryCommandBuffer = fGpu->cmdPool()->findOrCreateSecondaryCommandBuffer(fGpu); in addAdditionalRenderPass()
583 fCurrentSecondaryCommandBuffer->begin(fGpu, fFramebuffer.get(), fCurrentRenderPass); in addAdditionalRenderPass()
594 SkASSERT(fGpu->isDeviceLost()); in inlineUpload()
598 fCurrentSecondaryCommandBuffer->end(fGpu); in inlineUpload()
599 fGpu->submitSecondaryCommandBuffer(std::move(fCurrentSecondaryCommandBuffer)); in inlineUpload()
601 fGpu->endRenderPass(fRenderTarget, fOrigin, fBounds); in inlineUpload()
614 fCurrentSecondaryCommandBuffer->end(fGpu); in onEnd()
620 SkASSERT(fGpu->isDeviceLost()); in onBindPipeline()
636 fCurrentPipelineState = fGpu->resourceProvider().findOrCreateCompatiblePipelineState( in onBindPipeline()
642 fCurrentPipelineState->bindPipeline(fGpu, currentCB); in onBindPipeline()
649 if (!fCurrentPipelineState->setAndBindUniforms(fGpu, colorAttachment->dimensions(), programInfo, in onBindPipeline()
657 fGpu, currentCB, colorAttachment->dimensions(), fOrigin, in onBindPipeline()
660 GrVkPipeline::SetDynamicViewportState(fGpu, currentCB, colorAttachment->dimensions()); in onBindPipeline()
661 GrVkPipeline::SetDynamicBlendConstantState(fGpu, currentCB, in onBindPipeline()
673 GrVkPipeline::SetDynamicScissorRectState(fGpu, this->currentCommandBuffer(), in onSetScissorRect()
693 check_sampled_texture(geomProcTextures[i]->peekTexture(), colorAttachment, fGpu); in onBindTextures()
696 check_sampled_texture(te.texture(), colorAttachment, fGpu); in onBindTextures()
699 check_sampled_texture(dstTexture, colorAttachment, fGpu); in onBindTextures()
702 if (!fCurrentPipelineState->setAndBindTextures(fGpu, geomProc, pipeline, geomProcTextures, in onBindTextures()
708 auto ds = fFramebuffer->colorAttachment()->inputDescSetForBlending(fGpu); in onBindTextures()
712 return fCurrentPipelineState->setAndBindInputAttachment(fGpu, std::move(ds), in onBindTextures()
724 SkASSERT(fGpu->isDeviceLost()); in onBindBuffers()
728 SkASSERT(!fGpu->caps()->usePrimitiveRestart()); // Ignore primitiveRestart parameter. in onBindBuffers()
744 currCmdBuf->bindInputBuffer(fGpu, binding++, std::move(vertexBuffer)); in onBindBuffers()
749 currCmdBuf->bindInputBuffer(fGpu, binding++, std::move(instanceBuffer)); in onBindBuffers()
754 currCmdBuf->bindIndexBuffer(fGpu, std::move(indexBuffer)); in onBindBuffers()
762 SkASSERT(fGpu->isDeviceLost()); in onDrawInstanced()
766 this->currentCommandBuffer()->draw(fGpu, vertexCount, instanceCount, baseVertex, baseInstance); in onDrawInstanced()
767 fGpu->stats()->incNumDraws(); in onDrawInstanced()
774 SkASSERT(fGpu->isDeviceLost()); in onDrawIndexedInstanced()
778 this->currentCommandBuffer()->drawIndexed(fGpu, indexCount, instanceCount, in onDrawIndexedInstanced()
780 fGpu->stats()->incNumDraws(); in onDrawIndexedInstanced()
788 SkASSERT(fGpu->isDeviceLost()); in onDrawIndirect()
791 const GrVkCaps& caps = fGpu->vkCaps(); in onDrawIndirect()
801 fGpu, sk_ref_sp(drawIndirectBuffer), offset, currDrawCount, stride); in onDrawIndirect()
804 fGpu->stats()->incNumDraws(); in onDrawIndirect()
813 SkASSERT(fGpu->isDeviceLost()); in onDrawIndexedIndirect()
816 const GrVkCaps& caps = fGpu->vkCaps(); in onDrawIndexedIndirect()
825 fGpu, sk_ref_sp(drawIndirectBuffer), offset, currDrawCount, stride); in onDrawIndexedIndirect()
828 fGpu->stats()->incNumDraws(); in onDrawIndexedIndirect()
837 SkASSERT(fGpu->isDeviceLost()); in onExecuteDrawable()
846 fGpu->endRenderPass(fRenderTarget, fOrigin, fBounds); in onExecuteDrawable()
850 SkASSERT(fGpu->isDeviceLost()); in onExecuteDrawable()
876 fGpu->addDrawable(std::move(drawable)); in onExecuteDrawable()