Home
last modified time | relevance | path

Searched refs:fGpu (Results 1 – 25 of 120) sorted by relevance

12345

/external/skia/src/gpu/gl/
DGrGLOpsRenderPass.cpp18 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X)
23 SkASSERT(fGpu); in set()
25 SkASSERT(fGpu == rt->getContext()->priv().getGpu()); in set()
41 fGpu->resolveRenderFBOs(glRT, nativeBounds.asSkIRect(), in onBegin()
45 fGpu->beginCommandBuffer(glRT, fUseMultisampleFBO, fContentBounds, fOrigin, in onBegin()
51 fGpu->endCommandBuffer(glRT, fUseMultisampleFBO, fColorLoadAndStoreInfo, in onEnd()
59 fGpu->resolveRenderFBOs(glRT, nativeBounds.asSkIRect(), in onEnd()
68 return fGpu->flushGLState(fRenderTarget, fUseMultisampleFBO, programInfo); in onBindPipeline()
72 fGpu->flushScissorRect(scissor, fRenderTarget->height(), fOrigin); in onSetScissorRect()
78 GrGLProgram* program = fGpu->currentProgram(); in onBindTextures()
[all …]
DGrGLProgramDataManager.cpp18 : fGpu(gpu) { in GrGLProgramDataManager()
39 GR_GL_CALL(fGpu->glInterface(), Uniform1i(sampler.fLocation, i + startUnit)); in setSamplerUniforms()
50 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fLocation, i)); in set1i()
62 GR_GL_CALL(fGpu->glInterface(), Uniform1iv(uni.fLocation, arrayCount, v)); in set1iv()
71 GR_GL_CALL(fGpu->glInterface(), Uniform1f(uni.fLocation, v0)); in set1f()
87 GR_GL_CALL(fGpu->glInterface(), Uniform1fv(uni.fLocation, arrayCount, v)); in set1fv()
96 GR_GL_CALL(fGpu->glInterface(), Uniform2i(uni.fLocation, i0, i1)); in set2i()
108 GR_GL_CALL(fGpu->glInterface(), Uniform2iv(uni.fLocation, arrayCount, v)); in set2iv()
117 GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fLocation, v0, v1)); in set2f()
129 GR_GL_CALL(fGpu->glInterface(), Uniform2fv(uni.fLocation, arrayCount, v)); in set2fv()
[all …]
/external/skia/src/gpu/vk/
DGrVkOpsRenderPass.cpp64 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()
[all …]
DGrVkResourceProvider.cpp23 : fGpu(gpu) in GrVkResourceProvider()
43 auto persistentCache = fGpu->getContext()->priv().getPersistentCache(); in pipelineCache()
58 const VkPhysicalDeviceProperties& devProps = fGpu->physicalDeviceProperties(); in pipelineCache()
74 GR_VK_CALL_RESULT(fGpu, result, CreatePipelineCache(fGpu->device(), &createInfo, nullptr, in pipelineCache()
85 GrVkDescriptorSetManager* dsm = GrVkDescriptorSetManager::CreateUniformManager(fGpu); in init()
89 dsm = GrVkDescriptorSetManager::CreateInputManager(fGpu); in init()
102 return GrVkPipeline::Make(fGpu, programInfo, shaderStageInfo, shaderStageCount, in makePipeline()
144 GrVkRenderPass* renderPass = GrVkRenderPass::CreateSimple(fGpu, desc, attachmentFlags, in findCompatibleRenderPass()
171 const GrVkRenderPass* newRenderPass = new GrVkRenderPass(fGpu, renderPass, in findCompatibleExternalRenderPass()
207 const GrVkRenderPass* renderPass = compatibleSet.getRenderPass(fGpu, in findRenderPass()
[all …]
DGrVkPipelineStateBuilder.cpp54 , fGpu(gpu) in GrVkPipelineStateBuilder()
59 return fGpu->caps(); in caps()
63 return fGpu->shaderCompiler(); in shaderCompiler()
81 if (!GrCompileVkShaderModule(fGpu, sksl, stage, shaderModule, in createVkShaderModule()
97 if (!GrInstallVkShaderModule(fGpu, spirv, stage, shaderModule, stageInfo)) { in installVkShaderModule()
145 GR_VK_CALL(fGpu->vkInterface(), in loadShadersFromCache()
146 DestroyShaderModule(fGpu->device(), outShaderModules[i], nullptr)); in loadShadersFromCache()
183 GrVkResourceProvider& resourceProvider = fGpu->resourceProvider(); in finalize()
222 auto persistentCache = fGpu->getContext()->priv().getPersistentCache(); in finalize()
293 GR_VK_CALL(fGpu->vkInterface(), DestroyShaderModule(fGpu->device(), in finalize()
[all …]
DGrVkPipelineStateCache.cpp30 : fGpu(gpu) in Entry()
35 fPipelineState->freeGPUResources(fGpu); in ~Entry()
39 GrVkGpu* fGpu; member
45 , fGpu(gpu) { in PipelineStateCache()
90 GrProgramDesc desc = fGpu->caps()->makeDesc(renderTarget, programInfo, flags); in findOrCreatePipelineState()
92 GrCapsDebugf(fGpu->caps(), "Failed to build vk program descriptor!\n"); in findOrCreatePipelineState()
124 fGpu, desc, programInfo, compatibleRenderPass, overrideSubpassForResolveLoad)); in findOrCreatePipelineStateImpl()
128 entry = fMap.insert(desc, std::make_unique<Entry>(fGpu, pipelineState)); in findOrCreatePipelineStateImpl()
DGrVkManagedResource.h17 GrVkManagedResource(const GrVkGpu* gpu) : fGpu(gpu) {} in GrVkManagedResource()
20 const GrVkGpu* fGpu; // pointer to gpu object that can be used
29 GrVkRecycledResource(GrVkGpu* gpu) : fGpu(gpu) {} in GrVkRecycledResource()
32 GrVkGpu* fGpu; // pointer to gpu object that can be used
DGrVkCommandPool.cpp69 GR_VK_CALL(fGpu->vkInterface(), in recycleSecondaryCommandBuffer()
70 FreeCommandBuffers(fGpu->device(), fCommandPool, 1, &vkBuffer)); in recycleSecondaryCommandBuffer()
103 fPrimaryCommandBuffer->freeGPUData(fGpu, fCommandPool); in freeGPUData()
105 buffer->freeGPUData(fGpu, fCommandPool); in freeGPUData()
108 GR_VK_CALL(fGpu->vkInterface(), in freeGPUData()
109 DestroyCommandPool(fGpu->device(), fCommandPool, nullptr)); in freeGPUData()
/external/skia/src/gpu/d3d/
DGrD3DOpsRenderPass.cpp28 GrD3DOpsRenderPass::GrD3DOpsRenderPass(GrD3DGpu* gpu) : fGpu(gpu) {} in GrD3DOpsRenderPass()
35 SkASSERT(fGpu == rt->getContext()->priv().getGpu()); in set()
51 GrGpu* GrD3DOpsRenderPass::gpu() { return fGpu; } in gpu()
56 d3dRT->msaaTextureResource()->setResourceState(fGpu, D3D12_RESOURCE_STATE_RENDER_TARGET); in onBegin()
58 d3dRT->setResourceState(fGpu, D3D12_RESOURCE_STATE_RENDER_TARGET); in onBegin()
60 fGpu->currentCommandList()->setRenderTarget(d3dRT); in onBegin()
65 fGpu->currentCommandList()->clearRenderTargetView(d3dRT, fClearColor, nullptr); in onBegin()
70 d3dStencil->setResourceState(fGpu, D3D12_RESOURCE_STATE_DEPTH_WRITE); in onBegin()
72 fGpu->currentCommandList()->clearDepthStencilView(d3dStencil, 0, nullptr); in onBegin()
180 fGpu->resourceProvider().findOrCreateCompatiblePipelineState(d3dRT, info); in onBindPipeline()
[all …]
DGrD3DResourceProvider.cpp22 : fGpu(gpu) in GrD3DResourceProvider()
43 return GrD3DDirectCommandList::Make(fGpu->device()); in findOrCreateDirectCommandList()
60 auto rootSig = GrD3DRootSignature::Make(fGpu, numTextureSamplers, numUAVs); in findOrCreateRootSignature()
76 auto commandSig = GrD3DCommandSignature::Make(fGpu, indexed, slot); in findOrCreateCommandSignature()
86 return fCpuDescriptorManager.createRenderTargetView(fGpu, textureResource); in createRenderTargetView()
96 return fCpuDescriptorManager.createDepthStencilView(fGpu, textureResource); in createDepthStencilView()
106 return fCpuDescriptorManager.createConstantBufferView(fGpu, bufferResource, offset, size); in createConstantBufferView()
111 return fCpuDescriptorManager.createShaderResourceView(fGpu, resource, highestMip, mipLevels); in createShaderResourceView()
116 return fCpuDescriptorManager.createUnorderedAccessView(fGpu, resource, mipSlice); in createUnorderedAccessView()
175 fGpu, filter, maxLOD, addressModeU, addressModeV).fHandle; in findOrCreateCompatibleSampler()
[all …]
/external/skqp/src/gpu/
DGrGpuResource.cpp24 GrGpuResource::GrGpuResource(GrGpu* gpu) : fGpu(gpu), fUniqueID(CreateUniqueID()) { in GrGpuResource()
33 get_resource_cache(fGpu)->resourceAccess().insertResource(this); in registerWithCache()
42 get_resource_cache(fGpu)->resourceAccess().insertResource(this); in registerWithCacheWrapped()
51 SkASSERT(fGpu); in release()
53 get_resource_cache(fGpu)->resourceAccess().removeResource(this); in release()
54 fGpu = nullptr; in release()
62 SkASSERT(fGpu); in abandon()
64 get_resource_cache(fGpu)->resourceAccess().removeResource(this); in abandon()
65 fGpu = nullptr; in abandon()
115 if (fGpu) { in getContext()
[all …]
DGrDirectContext.cpp120 context->fGpu = GrGLGpu::Make(std::move(interface), options, context.get()); in MakeGL()
121 if (!context->fGpu) { in MakeGL()
125 context->fCaps = context->fGpu->refCaps(); in MakeGL()
141 context->fGpu = GrMockGpu::Make(mockOptions, options, context.get()); in MakeMock()
142 if (!context->fGpu) { in MakeMock()
146 context->fCaps = context->fGpu->refCaps(); in MakeMock()
168 context->fGpu = GrVkGpu::Make(backendContext, options, context.get()); in MakeVulkan()
169 if (!context->fGpu) { in MakeVulkan()
173 context->fCaps = context->fGpu->refCaps(); in MakeVulkan()
192 context->fGpu = GrMtlTrampoline::MakeGpu(context.get(), options, device, queue); in MakeMetal()
[all …]
DGrResourceProvider.cpp45 , fGpu(gpu) in GrResourceProvider()
58 fCaps = sk_ref_sp(fGpu->caps()); in GrResourceProvider()
79 return fGpu->createTexture(desc, budgeted, texels, mipLevelCount); in createTexture()
111 GrContext* context = fGpu->getContext(); in createTexture()
138 return fGpu->createTexture(desc, budgeted, &mipLevel, 1); in createTexture()
161 return fGpu->createTexture(desc, budgeted); in createTexture()
190 (fGpu->caps()->reuseScratchTextures() || (desc.fFlags & kRenderTarget_GrSurfaceFlag))) { in createApproxTexture()
200 return fGpu->createTexture(*copyDesc, SkBudgeted::kYes); in createApproxTexture()
212 (fGpu->caps()->reuseScratchTextures() || (desc.fFlags & kRenderTarget_GrSurfaceFlag))) { in refScratchTexture()
244 return fGpu->wrapBackendTexture(tex, ownership, cacheable, ioType); in wrapBackendTexture()
[all …]
/external/skia/src/gpu/
DGrGpuResource.cpp24 GrGpuResource::GrGpuResource(GrGpu* gpu) : fGpu(gpu), fUniqueID(CreateUniqueID()) { in GrGpuResource()
33 get_resource_cache(fGpu)->resourceAccess().insertResource(this); in registerWithCache()
42 get_resource_cache(fGpu)->resourceAccess().insertResource(this); in registerWithCacheWrapped()
51 SkASSERT(fGpu); in release()
53 get_resource_cache(fGpu)->resourceAccess().removeResource(this); in release()
54 fGpu = nullptr; in release()
62 SkASSERT(fGpu); in abandon()
64 get_resource_cache(fGpu)->resourceAccess().removeResource(this); in abandon()
65 fGpu = nullptr; in abandon()
121 if (fGpu) { in getContext()
[all …]
DGrDirectContext.cpp74 if (fGpu) { in ~GrDirectContext()
100 fGpu->resetTextureBindings(); in resetGLTextureBindings()
105 fGpu->markContextDirty(state); in resetContext()
127 fGpu->disconnect(GrGpu::DisconnectType::kAbandon); in abandonContext()
143 if (fGpu && fGpu->isDeviceLost()) { in abandoned()
150 bool GrDirectContext::oomed() { return fGpu ? fGpu->checkAndResetOOMed() : false; } in oomed()
170 fGpu->disconnect(GrGpu::DisconnectType::kCleanup); in releaseResourcesAndAbandonContext()
201 if (!fGpu) { in init()
205 fThreadSafeProxy->priv().init(fGpu->refCaps(), fGpu->refPipelineBuilder()); in init()
224 fResourceProvider = std::make_unique<GrResourceProvider>(fGpu.get(), fResourceCache.get(), in init()
[all …]
DGrFinishCallbacks.cpp11 GrFinishCallbacks::GrFinishCallbacks(GrGpu* gpu) : fGpu(gpu) {} in GrFinishCallbacks()
23 callback.fFence = fGpu->insertFence(); in add()
29 while (!fCallbacks.empty() && fGpu->waitFence(fCallbacks.front().fFence)) { in check()
31 fGpu->deleteFence(fCallbacks.front().fFence); in check()
40 fGpu->deleteFence(fCallbacks.front().fFence); in callAll()
/external/skqp/src/gpu/vk/
DGrVkGpuCommandBuffer.cpp41 fGpu->copySurface(fTexture, fOrigin, copyInfo.fSrc, copyInfo.fSrcOrigin, copyInfo.fSrcRect, in submit()
82 , fGpu(gpu) in GrVkGpuRTCommandBuffer()
97 cbInfo.fRenderPass = fGpu->resourceProvider().findRenderPass(rpHandle, in init()
101 cbInfo.fRenderPass = fGpu->resourceProvider().findRenderPass(*vkRT, in init()
126 cbInfo.fCommandBuffers.push_back(fGpu->cmdPool()->findOrCreateSecondaryCommandBuffer(fGpu)); in init()
127 cbInfo.currentCmdBuf()->begin(fGpu, vkRT->framebuffer(), cbInfo.fRenderPass); in init()
143 cbInfo.currentCmdBuf()->begin(fGpu, nullptr, cbInfo.fRenderPass); in initWrapped()
150 GrGpu* GrVkGpuRTCommandBuffer::gpu() { return fGpu; } in gpu()
154 fCommandBufferInfos[fCurrentCmdInfo].currentCmdBuf()->end(fGpu); in end()
177 fGpu->copySurface(fRenderTarget, fOrigin, copyInfo.fSrc, copyInfo.fSrcOrigin, in submit()
[all …]
DGrVkResourceProvider.cpp27 : fGpu(gpu) in GrVkResourceProvider()
47 auto persistentCache = fGpu->getContext()->contextPriv().getPersistentCache(); in pipelineCache()
62 const VkPhysicalDeviceProperties& devProps = fGpu->physicalDeviceProperties(); in pipelineCache()
76 VkResult result = GR_VK_CALL(fGpu->vkInterface(), in pipelineCache()
77 CreatePipelineCache(fGpu->device(), &createInfo, nullptr, in pipelineCache()
89 GrVkDescriptorSetManager* dsm = GrVkDescriptorSetManager::CreateUniformManager(fGpu); in init()
104 return GrVkPipeline::Create(fGpu, numColorSamples, primProc, pipeline, stencil, shaderStageInfo, in createPipeline()
121 pipeline = GrVkCopyPipeline::Create(fGpu, shaderStageInfo, in findOrCreateCopyPipeline()
154 fRenderPassArray.emplace_back(fGpu, target).getCompatibleRenderPass(); in findCompatibleRenderPass()
214 const GrVkRenderPass* renderPass = compatibleSet.getRenderPass(fGpu, in findRenderPass()
[all …]
DGrVkPipelineStateCache.cpp27 : fGpu(gpu) in Entry()
32 fPipelineState->freeGPUResources(fGpu); in ~Entry()
36 GrVkGpu* fGpu; member
42 , fGpu(gpu) in PipelineStateCache()
99 primitiveType, fGpu)) { in refPipelineState()
100 GrCapsDebugf(fGpu->caps(), "Failed to build vk program descriptor!\n"); in refPipelineState()
115 fGpu, renderTarget, origin, primProc, primProcProxies, pipeline, stencil, in refPipelineState()
120 entry = fMap.insert(desc, std::unique_ptr<Entry>(new Entry(fGpu, pipelineState))); in refPipelineState()
DGrVkPipelineStateBuilder.cpp50 , fGpu(gpu) in GrVkPipelineStateBuilder()
55 return fGpu->caps(); in caps()
82 if (!GrCompileVkShaderModule(fGpu, shaderString.c_str(), stage, shaderModule, in createVkShaderModule()
102 if (!GrInstallVkShaderModule(fGpu, spirv, stage, shaderModule, stageInfo)) { in installVkShaderModule()
240 GrVkResourceProvider& resourceProvider = fGpu->resourceProvider(); in finalize()
261 GR_VK_CALL_ERRCHECK(fGpu->vkInterface(), CreatePipelineLayout(fGpu->device(), in finalize()
283 auto persistentCache = fGpu->getContext()->contextPriv().getPersistentCache(); in finalize()
342 GR_VK_CALL(fGpu->vkInterface(), DestroyShaderModule(fGpu->device(), vertShaderModule, in finalize()
344 GR_VK_CALL(fGpu->vkInterface(), DestroyShaderModule(fGpu->device(), fragShaderModule, in finalize()
349 GR_VK_CALL(fGpu->vkInterface(), DestroyShaderModule(fGpu->device(), geomShaderModule, in finalize()
[all …]
/external/skqp/src/gpu/gl/
DGrGLGpuCommandBuffer.h22 GrGLGpuTextureCommandBuffer(GrGLGpu* gpu) : fGpu(gpu) {} in GrGLGpuTextureCommandBuffer()
26 fGpu->copySurface(fTexture, fOrigin, src, srcOrigin, srcRect, dstPoint); in copy()
30 fGpu->insertEventMarker(msg); in insertEventMarker()
38 GrGLGpu* fGpu;
50 GrGLGpuRTCommandBuffer(GrGLGpu* gpu) : fGpu(gpu) {} in GrGLGpuRTCommandBuffer()
58 fGpu->insertEventMarker(msg); in insertEventMarker()
67 fGpu->copySurface(fRenderTarget, fOrigin, src, srcOrigin, srcRect, dstPoint); in copy()
79 GrGpu* gpu() override { return fGpu; } in gpu()
88 fGpu->draw(fRenderTarget, fOrigin, primProc, pipeline, fixedDynamicState, in onDraw()
93 fGpu->clear(clip, color, fRenderTarget, fOrigin); in onClear()
[all …]
DGrGLProgramDataManager.cpp20 : fGpu(gpu) in GrGLProgramDataManager()
40 SkASSERT(fGpu->glCaps().shaderCaps()->pathRenderingSupport()); in GrGLProgramDataManager()
59 GR_GL_CALL(fGpu->glInterface(), Uniform1i(sampler.fLocation, i + startUnit)); in setSamplerUniforms()
69 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fLocation, i)); in set1i()
81 GR_GL_CALL(fGpu->glInterface(), Uniform1iv(uni.fLocation, arrayCount, v)); in set1iv()
90 GR_GL_CALL(fGpu->glInterface(), Uniform1f(uni.fLocation, v0)); in set1f()
106 GR_GL_CALL(fGpu->glInterface(), Uniform1fv(uni.fLocation, arrayCount, v)); in set1fv()
115 GR_GL_CALL(fGpu->glInterface(), Uniform2i(uni.fLocation, i0, i1)); in set2i()
127 GR_GL_CALL(fGpu->glInterface(), Uniform2iv(uni.fLocation, arrayCount, v)); in set2iv()
136 GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fLocation, v0, v1)); in set2f()
[all …]
DGrGLProgram.cpp23 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X)
24 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(fGpu->glInterface(), R, X)
55 , fGpu(gpu) in GrGLProgram()
103 fGpu->bindTexture(nextTexSamplerIdx++, GrSamplerState::ClampNearest(), in updateUniformsAndTextureBindings()
113 fGpu->bindTexture(i, primProc.textureSampler(i).samplerState(), tex); in updatePrimitiveProcessorTextureBindings()
126 fGpu->bindTexture((*nextTexSamplerIdx)++, sampler.samplerState(), in setFragmentData()
161 SkASSERT(fGpu->glCaps().shaderCaps()->pathRenderingSupport()); in setRenderTargetState()
163 fGpu->glPathRendering()->setProjectionMatrix(pathProc.viewMatrix(), in setRenderTargetState()
/external/skia/src/gpu/gl/builders/
DGrGLProgramBuilder.cpp83 , fGpu(gpu) in GrGLProgramBuilder()
92 return fGpu->caps(); in caps()
96 return fGpu->shaderCompiler(); in shaderCompiler()
166 SkString description = GrProgramDesc::Describe(fProgramInfo, *fGpu->caps()); in storeShaderInCache()
167 if (fGpu->glCaps().programBinarySupport()) { in storeShaderInCache()
243 bool checkLinked = !fGpu->glCaps().skipErrorChecks(); in finalize()
269 if (!fGpu->glCaps().programBinarySupport()) { in finalize()
341 cleanup_program(fGpu, programID, shadersToDelete); in finalize()
350 cleanup_program(fGpu, programID, shadersToDelete); in finalize()
366 cleanup_program(fGpu, programID, shadersToDelete); in finalize()
[all …]
/external/skia/src/gpu/dawn/
DGrDawnOpsRenderPass.cpp47 , fGpu(gpu) in GrDawnOpsRenderPass()
49 fEncoder = fGpu->device().CreateCommandEncoder(); in GrDawnOpsRenderPass()
93 GrGpu* GrDawnOpsRenderPass::gpu() { return fGpu; } in gpu()
96 fGpu->appendCommandBuffer(fEncoder.Finish()); in submit()
116 fGpu->submitToGpu(false); in inlineUpload()
123 auto bindGroup = program->setUniformData(fGpu, fRenderTarget, programInfo); in applyState()
147 fCurrentProgram = fGpu->getOrCreateRenderPipeline(fRenderTarget, programInfo); in onBindPipeline()
168 auto bindGroup = fCurrentProgram->setTextures(fGpu, geomProc, pipeline, geomProcTextures); in onBindTextures()
200 fGpu->stats()->incNumDraws(); in onDrawInstanced()
211 fGpu->stats()->incNumDraws(); in onDrawIndexedInstanced()

12345