• Home
  • Raw
  • Download

Lines Matching refs:cbInfo

90     CommandBufferInfo& cbInfo = fCommandBufferInfos.push_back();  in init()  local
97 cbInfo.fRenderPass = fGpu->resourceProvider().findRenderPass(rpHandle, in init()
101 cbInfo.fRenderPass = fGpu->resourceProvider().findRenderPass(*vkRT, in init()
106 cbInfo.fColorClearValue.color.float32[0] = fClearColor[0]; in init()
107 cbInfo.fColorClearValue.color.float32[1] = fClearColor[1]; in init()
108 cbInfo.fColorClearValue.color.float32[2] = fClearColor[2]; in init()
109 cbInfo.fColorClearValue.color.float32[3] = fClearColor[3]; in init()
112 cbInfo.fBounds = SkRect::MakeWH(vkRT->width(), vkRT->height()); in init()
114 cbInfo.fBounds.setEmpty(); in init()
118 cbInfo.fLoadStoreState = LoadStoreState::kStartsWithClear; in init()
121 cbInfo.fLoadStoreState = LoadStoreState::kLoadAndStore; in init()
123 cbInfo.fLoadStoreState = LoadStoreState::kStartsWithDiscard; in init()
126 cbInfo.fCommandBuffers.push_back(fGpu->cmdPool()->findOrCreateSecondaryCommandBuffer(fGpu)); in init()
127 cbInfo.currentCmdBuf()->begin(fGpu, vkRT->framebuffer(), cbInfo.fRenderPass); in init()
131 CommandBufferInfo& cbInfo = fCommandBufferInfos.push_back(); in initWrapped() local
137 cbInfo.fRenderPass = vkRT->externalRenderPass(); in initWrapped()
138 cbInfo.fRenderPass->ref(); in initWrapped()
140 cbInfo.fBounds.setEmpty(); in initWrapped()
141 cbInfo.fCommandBuffers.push_back(vkRT->getExternalSecondaryCommandBuffer()); in initWrapped()
142 cbInfo.fCommandBuffers[0]->ref(); in initWrapped()
143 cbInfo.currentCmdBuf()->begin(fGpu, nullptr, cbInfo.fRenderPass); in initWrapped()
168 CommandBufferInfo& cbInfo = fCommandBufferInfos[i]; in submit() local
170 for (int j = 0; j < cbInfo.fPreDrawUploads.count(); ++j) { in submit()
171 InlineUploadInfo& iuInfo = cbInfo.fPreDrawUploads[j]; in submit()
175 for (int j = 0; j < cbInfo.fPreCopies.count(); ++j) { in submit()
176 CopyInfo& copyInfo = cbInfo.fPreCopies[j]; in submit()
186 if (cbInfo.fIsEmpty && in submit()
187 cbInfo.fLoadStoreState != LoadStoreState::kStartsWithClear && in submit()
188 cbInfo.fLoadStoreState != LoadStoreState::kStartsWithDiscard) { in submit()
197 for (int j = 0; j < cbInfo.fSampledImages.count(); ++j) { in submit()
198 cbInfo.fSampledImages[j]->setImageLayout(fGpu, in submit()
214 if (cbInfo.fIsEmpty && cbInfo.fLoadStoreState == LoadStoreState::kStartsWithDiscard) { in submit()
215 cbInfo.fBounds = SkRect::MakeWH(vkRT->width(), vkRT->height()); in submit()
218 if (cbInfo.fBounds.intersect(0, 0, in submit()
251 for (int j = 0; j < cbInfo.fSampledImages.count(); ++j) { in submit()
252 cbInfo.fSampledImages[j]->setImageLayout(fGpu, in submit()
260 cbInfo.fBounds.roundOut(&iBounds); in submit()
262 fGpu->submitSecondaryCommandBuffer(cbInfo.fCommandBuffers, cbInfo.fRenderPass, in submit()
263 &cbInfo.fColorClearValue, vkRT, fOrigin, iBounds); in submit()
297 CommandBufferInfo& cbInfo = fCommandBufferInfos[i]; in reset() local
298 for (int j = 0; j < cbInfo.fCommandBuffers.count(); ++j) { in reset()
299 cbInfo.fCommandBuffers[j]->unref(fGpu); in reset()
301 cbInfo.fRenderPass->unref(fGpu); in reset()
321 CommandBufferInfo& cbInfo = fCommandBufferInfos[fCurrentCmdInfo]; in discard() local
322 if (cbInfo.fIsEmpty) { in discard()
329 const GrVkRenderPass* oldRP = cbInfo.fRenderPass; in discard()
334 cbInfo.fRenderPass = fGpu->resourceProvider().findRenderPass(rpHandle, in discard()
338 cbInfo.fRenderPass = fGpu->resourceProvider().findRenderPass(*vkRT, in discard()
343 SkASSERT(cbInfo.fRenderPass->isCompatible(*oldRP)); in discard()
345 cbInfo.fBounds.join(fRenderTarget->getBoundsRect()); in discard()
346 cbInfo.fLoadStoreState = LoadStoreState::kStartsWithDiscard; in discard()
349 cbInfo.fPreCopies.reset(); in discard()
360 CommandBufferInfo& cbInfo = fCommandBufferInfos[fCurrentCmdInfo]; in onClearStencilClip() local
399 SkAssertResult(cbInfo.fRenderPass->stencilAttachmentIndex(&stencilIndex)); in onClearStencilClip()
406 cbInfo.currentCmdBuf()->clearAttachments(fGpu, 1, &attachment, 1, &clearRect); in onClearStencilClip()
407 cbInfo.fIsEmpty = false; in onClearStencilClip()
411 cbInfo.fBounds.join(fRenderTarget->getBoundsRect()); in onClearStencilClip()
413 cbInfo.fBounds.join(SkRect::Make(clip.scissorRect())); in onClearStencilClip()
423 CommandBufferInfo& cbInfo = fCommandBufferInfos[fCurrentCmdInfo]; in onClear() local
427 if (cbInfo.fIsEmpty && !clip.scissorEnabled()) { in onClear()
434 const GrVkRenderPass* oldRP = cbInfo.fRenderPass; in onClear()
439 cbInfo.fRenderPass = fGpu->resourceProvider().findRenderPass(rpHandle, in onClear()
443 cbInfo.fRenderPass = fGpu->resourceProvider().findRenderPass(*vkRT, in onClear()
448 SkASSERT(cbInfo.fRenderPass->isCompatible(*oldRP)); in onClear()
451 cbInfo.fColorClearValue.color = {{color.fR, color.fG, color.fB, color.fA}}; in onClear()
452 cbInfo.fLoadStoreState = LoadStoreState::kStartsWithClear; in onClear()
455 cbInfo.fPreCopies.reset(); in onClear()
458 cbInfo.fBounds.join(fRenderTarget->getBoundsRect()); in onClear()
481 SkAssertResult(cbInfo.fRenderPass->colorAttachmentIndex(&colorIndex)); in onClear()
488 cbInfo.currentCmdBuf()->clearAttachments(fGpu, 1, &attachment, 1, &clearRect); in onClear()
489 cbInfo.fIsEmpty = false; in onClear()
493 cbInfo.fBounds.join(fRenderTarget->getBoundsRect()); in onClear()
495 cbInfo.fBounds.join(SkRect::Make(clip.scissorRect())); in onClear()
505 CommandBufferInfo& cbInfo = fCommandBufferInfos[fCurrentCmdInfo]; in addAdditionalCommandBuffer() local
506 cbInfo.currentCmdBuf()->end(fGpu); in addAdditionalCommandBuffer()
507 cbInfo.fCommandBuffers.push_back(fGpu->cmdPool()->findOrCreateSecondaryCommandBuffer(fGpu)); in addAdditionalCommandBuffer()
508 cbInfo.currentCmdBuf()->begin(fGpu, vkRT->framebuffer(), cbInfo.fRenderPass); in addAdditionalCommandBuffer()
516 CommandBufferInfo& cbInfo = fCommandBufferInfos.push_back(); in addAdditionalRenderPass() local
527 cbInfo.fRenderPass = fGpu->resourceProvider().findRenderPass(rpHandle, in addAdditionalRenderPass()
531 cbInfo.fRenderPass = fGpu->resourceProvider().findRenderPass(*vkRT, in addAdditionalRenderPass()
535 cbInfo.fLoadStoreState = LoadStoreState::kLoadAndStore; in addAdditionalRenderPass()
537 cbInfo.fCommandBuffers.push_back(fGpu->cmdPool()->findOrCreateSecondaryCommandBuffer(fGpu)); in addAdditionalRenderPass()
540 memset(&cbInfo.fColorClearValue, 0, sizeof(VkClearValue)); in addAdditionalRenderPass()
541 cbInfo.fBounds.setEmpty(); in addAdditionalRenderPass()
543 cbInfo.currentCmdBuf()->begin(fGpu, vkRT->framebuffer(), cbInfo.fRenderPass); in addAdditionalRenderPass()
556 CommandBufferInfo& cbInfo = fCommandBufferInfos[fCurrentCmdInfo]; in copy() local
557 if (!cbInfo.fIsEmpty || LoadStoreState::kStartsWithClear == cbInfo.fLoadStoreState) { in copy()
563 LoadStoreState::kStartsWithDiscard == cbInfo.fLoadStoreState); in copy()
565 if (LoadStoreState::kLoadAndStore != cbInfo.fLoadStoreState) { in copy()
572 const GrVkRenderPass* oldRP = cbInfo.fRenderPass; in copy()
578 cbInfo.fRenderPass = fGpu->resourceProvider().findRenderPass(rpHandle, in copy()
582 cbInfo.fRenderPass = fGpu->resourceProvider().findRenderPass(*vkRT, in copy()
586 SkASSERT(cbInfo.fRenderPass->isCompatible(*oldRP)); in copy()
589 cbInfo.fLoadStoreState = LoadStoreState::kLoadAndStore; in copy()
641 CommandBufferInfo& cbInfo = fCommandBufferInfos[fCurrentCmdInfo]; in prepareDrawState() local
642 SkASSERT(cbInfo.fRenderPass); in prepareDrawState()
644 VkRenderPass compatibleRenderPass = cbInfo.fRenderPass->vkRenderPass(); in prepareDrawState()
666 if (!cbInfo.fIsEmpty && in prepareDrawState()
673 pipelineState->bindPipeline(fGpu, cbInfo.currentCmdBuf()); in prepareDrawState()
676 primProc, pipeline, cbInfo.currentCmdBuf()); in prepareDrawState()
682 cbInfo.currentCmdBuf()); in prepareDrawState()
686 GrVkPipeline::SetDynamicScissorRectState(fGpu, cbInfo.currentCmdBuf(), in prepareDrawState()
692 GrVkPipeline::SetDynamicScissorRectState(fGpu, cbInfo.currentCmdBuf(), fRenderTarget, in prepareDrawState()
696 GrVkPipeline::SetDynamicViewportState(fGpu, cbInfo.currentCmdBuf(), fRenderTarget); in prepareDrawState()
697 GrVkPipeline::SetDynamicBlendConstantState(fGpu, cbInfo.currentCmdBuf(), in prepareDrawState()
715 CommandBufferInfo& cbInfo = fCommandBufferInfos[fCurrentCmdInfo]; in onDraw() local
733 cbInfo.fSampledImages.push_back(vkTexture); in onDraw()
757 cbInfo.fSampledImages.push_back(static_cast<GrVkTexture*>(dstTexture)); in onDraw()
784 GrVkPipeline::SetDynamicScissorRectState(fGpu, cbInfo.currentCmdBuf(), fRenderTarget, in onDraw()
792 cbInfo.currentCmdBuf()); in onDraw()
798 cbInfo.fBounds.join(bounds); in onDraw()
799 cbInfo.fIsEmpty = false; in onDraw()
809 CommandBufferInfo& cbInfo = fCommandBufferInfos[fCurrentCmdInfo]; in sendInstancedMeshToGpu() local
811 cbInfo.currentCmdBuf()->draw(fGpu, vertexCount, instanceCount, baseVertex, baseInstance); in sendInstancedMeshToGpu()
826 CommandBufferInfo& cbInfo = fCommandBufferInfos[fCurrentCmdInfo]; in sendIndexedInstancedMeshToGpu() local
828 cbInfo.currentCmdBuf()->drawIndexed(fGpu, indexCount, instanceCount, in sendIndexedInstancedMeshToGpu()
840 CommandBufferInfo& cbInfo = fCommandBufferInfos[fCurrentCmdInfo]; in executeDrawable() local
846 vkInfo.fSecondaryCommandBuffer = cbInfo.currentCmdBuf()->vkCommandBuffer(); in executeDrawable()
847 vkInfo.fCompatibleRenderPass = cbInfo.fRenderPass->vkRenderPass(); in executeDrawable()
848 SkAssertResult(cbInfo.fRenderPass->colorAttachmentIndex(&vkInfo.fColorAttachmentIndex)); in executeDrawable()
855 cbInfo.currentCmdBuf()->invalidateState(); in executeDrawable()
861 cbInfo.fBounds.join(target->getBoundsRect()); in executeDrawable()
863 cbInfo.fBounds.join(SkRect::MakeXYWH(bounds.offset.x, bounds.offset.y, in executeDrawable()