/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
H A D | SwapChain.cpp | 39 GetDevice()->ConsumedError( 44 GetDevice()->ConsumedError( 46 return TextureViewBase::MakeError(GetDevice()); 50 GetDevice()->ConsumedError( 159 if (GetDevice()->ConsumedError(ValidateConfigure(format, allowedUsage, width, height))) { in APIConfigure() 175 if (GetDevice()->ConsumedError(ValidateGetCurrentTextureView())) { in APIGetCurrentTextureView() 176 return TextureViewBase::MakeError(GetDevice()); in APIGetCurrentTextureView() 208 if (GetDevice()->ConsumedError(ValidatePresent())) { in APIPresent() 213 if (GetDevice()->ConsumedError(OnBeforePresent(mCurrentTextureView.Get()))) { in APIPresent() 232 DAWN_TRY(GetDevice() in ValidateConfigure() [all...] |
H A D | Queue.cpp | 209 if (GetDevice()->ConsumedError(ValidateOnSubmittedWorkDone(signalValue, &status))) { in APIOnSubmittedWorkDone() 221 TrackTask(std::move(task), GetDevice()->GetPendingCommandSerial()); in APIOnSubmittedWorkDone() 226 GetDevice()->AddFutureSerial(serial); in TrackTask() 257 GetDevice()->ConsumedError(WriteBuffer(buffer, bufferOffset, data, size)); in APIWriteBuffer() 264 DAWN_TRY(GetDevice()->ValidateIsAlive()); in WriteBuffer() 265 DAWN_TRY(GetDevice()->ValidateObject(this)); in WriteBuffer() 266 DAWN_TRY(ValidateWriteBuffer(GetDevice(), buffer, bufferOffset, size)); in WriteBuffer() 279 DeviceBase* device = GetDevice(); in WriteBufferImpl() 300 GetDevice()->ConsumedError( in APIWriteTexture() 337 uint32_t optimalBytesPerRowAlignment = GetDevice() in WriteTextureImpl() [all...] |
H A D | CommandEncoder.cpp | 417 DeviceBase* device = encoder->GetDevice(); in EncodeTimestampsToNanosecondsConversion() 501 if (GetDevice()->IsValidationEnabled()) { in TrackQueryAvailability() 513 DeviceBase* device = GetDevice(); in APIBeginComputePass() 542 DeviceBase* device = GetDevice(); in APIBeginRenderPass() 656 if (GetDevice()->IsValidationEnabled()) { in APICopyBufferToBuffer() 657 DAWN_TRY(GetDevice()->ValidateObject(source)); in APICopyBufferToBuffer() 658 DAWN_TRY(GetDevice()->ValidateObject(destination)); in APICopyBufferToBuffer() 699 if (GetDevice()->IsValidationEnabled()) { in APICopyBufferToTexture() 700 DAWN_TRY(ValidateImageCopyBuffer(GetDevice(), *source)); in APICopyBufferToTexture() 704 DAWN_TRY(ValidateImageCopyTexture(GetDevice(), *destinatio in APICopyBufferToTexture() [all...] |
H A D | CreatePipelineAsyncTask.cpp | 117 TRACE_EVENT_FLOW_END1(mComputePipeline->GetDevice()->GetPlatform(), General, in Run() 120 TRACE_EVENT1(mComputePipeline->GetDevice()->GetPlatform(), General, in Run() 130 mComputePipeline->GetDevice()->AddComputePipelineAsyncCallbackTask( in Run() 136 DeviceBase* device = task->mComputePipeline->GetDevice(); in RunAsync() 167 TRACE_EVENT_FLOW_END1(mRenderPipeline->GetDevice()->GetPlatform(), General, in Run() 169 TRACE_EVENT1(mRenderPipeline->GetDevice()->GetPlatform(), General, in Run() 179 mRenderPipeline->GetDevice()->AddRenderPipelineAsyncCallbackTask( in Run() 185 DeviceBase* device = task->mRenderPipeline->GetDevice(); in RunAsync()
|
H A D | Buffer.cpp | 240 DeviceBase* device = GetDevice(); in MapAtCreation() 272 GetDevice()->CreateStagingBuffer(GetAllocatedSize())); in MapAtCreationInternal() 306 if (GetDevice()->IsLost()) { in CallMapCallback() 327 if (GetDevice()->ConsumedError(ValidateMapAsync(mode, offset, size, &status), in APIMapAsync() 345 if (GetDevice()->ConsumedError(MapAsyncImpl(mode, offset, size))) { in APIMapAsync() 351 GetDevice()->GetQueue()->TrackTask(std::move(request), in APIMapAsync() 352 GetDevice()->GetPendingCommandSerial()); in APIMapAsync() 390 DAWN_TRY(GetDevice()->CopyFromStagingToBuffer(mStagingBuffer.get(), 0, this, 0, in CopyFromStagingBuffer() 393 DynamicUploader* uploader = GetDevice()->GetDynamicUploader(); in CopyFromStagingBuffer() 400 if (GetDevice() in APIUnmap() [all...] |
H A D | ObjectBase.cpp | 32 DeviceBase* ObjectBase::GetDevice() const { in GetDevice() function in dawn_native::ObjectBase 79 ASSERT(GetDevice() != nullptr); in TrackInDevice() 80 GetDevice()->TrackObject(this); in TrackInDevice() 84 const std::lock_guard<std::mutex> lock(*GetDevice()->GetObjectListMutex(GetType())); in Destroy()
|
H A D | RenderBundleEncoder.cpp | 133 if (GetDevice()->ConsumedError(FinishImpl(descriptor), &result, "calling %s.Finish(%s).", in APIFinish() 135 return RenderBundleBase::MakeError(GetDevice()); in APIFinish() 150 DAWN_TRY(GetDevice()->ValidateObject(this)); in FinishImpl() 161 TRACE_EVENT0(GetDevice()->GetPlatform(), Validation, "RenderBundleEncoder::ValidateFinish"); in ValidateFinish() 162 DAWN_TRY(GetDevice()->ValidateObject(this)); in ValidateFinish()
|
H A D | Pipeline.cpp | 187 DAWN_TRY(GetDevice()->ValidateIsAlive()); in ValidateGetBindGroupLayout() 188 DAWN_TRY(GetDevice()->ValidateObject(this)); in ValidateGetBindGroupLayout() 189 DAWN_TRY(GetDevice()->ValidateObject(mLayout.Get())); in ValidateGetBindGroupLayout() 203 return Ref<BindGroupLayoutBase>(GetDevice()->GetEmptyBindGroupLayout()); in GetBindGroupLayout() 211 if (GetDevice()->ConsumedError(GetBindGroupLayout(groupIndexIn), &result, in APIGetBindGroupLayout() 214 return BindGroupLayoutBase::MakeError(GetDevice()); in APIGetBindGroupLayout()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
H A D | D3D12Info.cpp | 33 DAWN_TRY(CheckHRESULT(adapter.GetDevice()->CheckFeatureSupport(D3D12_FEATURE_ARCHITECTURE, in GatherDeviceInfo() 40 DAWN_TRY(CheckHRESULT(adapter.GetDevice()->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS, in GatherDeviceInfo() 51 if (SUCCEEDED(adapter.GetDevice()->CheckFeatureSupport( in GatherDeviceInfo() 66 if (SUCCEEDED(adapter.GetDevice()->CheckFeatureSupport( in GatherDeviceInfo() 82 if (SUCCEEDED(adapter.GetDevice()->CheckFeatureSupport( in GatherDeviceInfo() 113 if (SUCCEEDED(adapter.GetDevice()->CheckFeatureSupport( in GatherDeviceInfo()
|
H A D | SwapChainD3D12.cpp | 86 wsiContext.device = ToAPI(GetDevice()); in OldSwapChain() 96 DeviceBase* device = GetDevice(); in GetNextTextureImpl() 108 Texture::Create(ToBackend(GetDevice()), descriptor, std::move(d3d12Texture)), in GetNextTextureImpl() 117 Device* device = ToBackend(GetDevice()); in OnBeforePresent() 182 DAWN_INVALID_IF(GetDevice() != previousSwapChain->GetDevice(), in Initialize() 230 Device* device = ToBackend(GetDevice()); in InitializeSwapChainFromScratch() 306 Device* device = ToBackend(GetDevice()); in PresentImpl() 336 Device* device = ToBackend(GetDevice()); in GetCurrentTextureViewImpl() 347 DAWN_TRY_ASSIGN(mApiTexture, Texture::Create(ToBackend(GetDevice()), in GetCurrentTextureViewImpl() [all...] |
H A D | BufferD3D12.cpp | 155 ToBackend(GetDevice())->AllocateMemory(heapType, resourceDescriptor, bufferUsage)); in Initialize() 161 if (GetDevice()->IsToggleEnabled(Toggle::NonzeroClearResourcesOnCreationForTesting) && in Initialize() 165 ToBackend(GetDevice())->GetPendingCommandContext()); in Initialize() 171 if (GetDevice()->IsToggleEnabled(Toggle::LazyClearResourceOnFirstUse) && in Initialize() 177 ToBackend(GetDevice())->GetPendingCommandContext()); in Initialize() 202 commandContext->TrackHeapUsage(heap, GetDevice()->GetPendingCommandSerial()); in TrackUsageAndGetResourceBarrier() 267 ToBackend(GetDevice())->GetPendingCommandSerial(); in TransitionUsageAndGetResourceBarrier() 324 DAWN_TRY(ToBackend(GetDevice())->GetResidencyManager()->LockAllocation(heap)); in MapInternal() 358 DAWN_TRY_ASSIGN(commandContext, ToBackend(GetDevice())->GetPendingCommandContext()); in MapAsyncImpl() 372 ToBackend(GetDevice()) in UnmapImpl() [all...] |
H A D | ComputePipelineD3D12.cpp | 34 Device* device = ToBackend(GetDevice()); in Initialize() 73 ToBackend(GetDevice())->ReferenceUntilUnused(mPipelineState); in DestroyImpl() 81 SetDebugName(ToBackend(GetDevice()), GetPipelineState(), "Dawn_ComputePipeline", in SetLabelImpl() 102 return ToBackend(GetDevice())->GetDispatchIndirectSignature(); in GetDispatchIndirectCommandSignature()
|
H A D | QueueD3D12.cpp | 33 Device* device = ToBackend(GetDevice()); in SubmitImpl() 40 TRACE_EVENT_BEGIN0(GetDevice()->GetPlatform(), Recording, in SubmitImpl() 45 TRACE_EVENT_END0(GetDevice()->GetPlatform(), Recording, in SubmitImpl()
|
H A D | QuerySetD3D12.cpp | 49 ID3D12Device* d3d12Device = ToBackend(GetDevice())->GetD3D12Device(); in Initialize() 67 ToBackend(GetDevice())->ReferenceUntilUnused(mQueryHeap); in DestroyImpl() 72 SetDebugName(ToBackend(GetDevice()), mQueryHeap.Get(), "Dawn_QuerySet", GetLabel()); in SetLabelImpl()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
H A D | QueueGL.cpp | 30 Device* device = ToBackend(GetDevice()); in SubmitImpl() 32 TRACE_EVENT_BEGIN0(GetDevice()->GetPlatform(), Recording, "CommandBufferGL::Execute"); in SubmitImpl() 36 TRACE_EVENT_END0(GetDevice()->GetPlatform(), Recording, "CommandBufferGL::Execute"); in SubmitImpl() 46 const OpenGLFunctions& gl = ToBackend(GetDevice())->gl; in WriteBufferImpl() 76 DoTexSubImage(ToBackend(GetDevice())->gl, textureCopy, data, dataLayout, writeSizePixel); in WriteTextureImpl()
|
H A D | BufferGL.cpp | 111 Device* device = ToBackend(GetDevice()); in InitializeToZero() 128 const OpenGLFunctions& gl = ToBackend(GetDevice())->gl; in MapAtCreationImpl() 135 const OpenGLFunctions& gl = ToBackend(GetDevice())->gl; in MapAsyncImpl() 171 const OpenGLFunctions& gl = ToBackend(GetDevice())->gl; in UnmapImpl() 180 ToBackend(GetDevice())->gl.DeleteBuffers(1, &mBuffer); in DestroyImpl()
|
H A D | ComputePipelineGL.cpp | 32 DeleteProgram(ToBackend(GetDevice())->gl); in DestroyImpl() 37 InitializeBase(ToBackend(GetDevice())->gl, ToBackend(GetLayout()), GetAllStages())); in Initialize() 42 PipelineGL::ApplyNow(ToBackend(GetDevice())->gl); in ApplyNow()
|
H A D | TextureGL.cpp | 131 const OpenGLFunctions& gl = ToBackend(GetDevice())->gl; in Texture() 176 if (GetDevice()->IsToggleEnabled(Toggle::NonzeroClearResourcesOnCreationForTesting)) { in Texture() 177 GetDevice()->ConsumedError( in Texture() 196 ToBackend(GetDevice())->gl.DeleteTextures(1, &mHandle); in DestroyImpl() 210 return ToBackend(GetDevice())->GetGLFormat(GetFormat()); in GetGLFormat() 220 Device* device = ToBackend(GetDevice()); in ClearTexture() 510 DoTexSubImage(ToBackend(GetDevice())->gl, textureCopy, 0, dataLayout, mipSize); in ClearTexture() 523 if (!GetDevice()->IsToggleEnabled(Toggle::LazyClearResourceOnFirstUse)) { in EnsureSubresourceContentInitialized() 527 GetDevice()->ConsumedError(ClearTexture(range, TextureBase::ClearValue::Zero)); in EnsureSubresourceContentInitialized() 550 const OpenGLFunctions& gl = ToBackend(GetDevice()) in TextureView() [all...] |
H A D | ShaderModuleGL.cpp | 247 ScopedTintICEHandler scopedICEHandler(GetDevice()); in Initialize() 253 options.disable_workgroup_init = GetDevice()->IsToggleEnabled(Toggle::DisableWorkgroupInit); in Initialize() 258 DAWN_TRY_ASSIGN(mGLBindings, ReflectShaderUsingSPIRVCross(GetDevice(), result.spirv)); in Initialize() 279 GetDevice()->IsToggleEnabled(Toggle::DisableWorkgroupInit); in TranslateToGLSL() 286 ValidateSpirv(GetDevice(), spirv, GetDevice()->IsToggleEnabled(Toggle::DumpShaders))); in TranslateToGLSL() 299 const OpenGLVersion& version = ToBackend(GetDevice())->gl.GetVersion(); in TranslateToGLSL() 390 if (GetDevice()->IsToggleEnabled(Toggle::DumpShaders)) { in TranslateToGLSL() 394 GetDevice()->EmitLog(WGPULoggingType_Info, dumpedMsg.str().c_str()); in TranslateToGLSL()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
H A D | ShaderModuleVk.cpp | 86 if (GetDevice()->IsRobustnessEnabled()) { in Initialize() 87 ScopedTintICEHandler scopedICEHandler(GetDevice()); in Initialize() 116 ScopedTintICEHandler scopedICEHandler(GetDevice()); in GetTransformedModuleHandle() 169 options.disable_workgroup_init = GetDevice()->IsToggleEnabled(Toggle::DisableWorkgroupInit); in GetTransformedModuleHandle() 176 ValidateSpirv(GetDevice(), spirv, GetDevice()->IsToggleEnabled(Toggle::DumpShaders))); in GetTransformedModuleHandle() 185 Device* device = ToBackend(GetDevice()); in GetTransformedModuleHandle() 197 SetDebugName(ToBackend(GetDevice()), VK_OBJECT_TYPE_SHADER_MODULE, in GetTransformedModuleHandle()
|
H A D | SwapChainVk.cpp | 61 GetDevice()->HandleError(InternalErrorType::Internal, error); in GetNextTextureImpl() 67 return Texture::CreateForSwapChain(ToBackend(GetDevice()), descriptor, nativeTexture) in GetNextTextureImpl() 72 Device* device = ToBackend(GetDevice()); in OnBeforePresent() 236 Device* device = ToBackend(GetDevice()); in Initialize() 237 Adapter* adapter = ToBackend(GetDevice()->GetAdapter()); in Initialize() 258 ToBackend(previousSwapChain->GetDevice())->GetVkInstance(); in Initialize() 259 DAWN_INVALID_IF(previousInstance != ToBackend(GetDevice())->GetVkInstance(), in Initialize() 272 ToBackend(previousSwapChain->GetDevice()) in Initialize() 376 VulkanImageUsage(GetUsage(), GetDevice()->GetValidInternalFormat(GetFormat())); in ChooseConfig() 471 Device* device = ToBackend(GetDevice()); in PresentImpl() [all...] |
H A D | BufferVk.cpp | 192 Device* device = ToBackend(GetDevice()); in Initialize() 253 ToBackend(GetDevice()) in TransitionUsageNow() 306 Device* device = ToBackend(GetDevice()); in MapAsyncImpl() 335 ToBackend(GetDevice())->GetResourceMemoryAllocator()->Deallocate(&mMemoryAllocation); in DestroyImpl() 338 ToBackend(GetDevice())->GetFencedDeleter()->DeleteWhenUnused(mHandle); in DestroyImpl() 384 SetDebugName(ToBackend(GetDevice()), VK_OBJECT_TYPE_BUFFER, in SetLabelImpl() 392 GetDevice()->IncrementLazyClearCountForTesting(); in InitializeToZero() 406 Device* device = ToBackend(GetDevice()); in ClearBuffer()
|
H A D | QueueVk.cpp | 42 Device* device = ToBackend(GetDevice()); in SubmitImpl() 46 TRACE_EVENT_BEGIN0(GetDevice()->GetPlatform(), Recording, in SubmitImpl() 52 TRACE_EVENT_END0(GetDevice()->GetPlatform(), Recording, "CommandBufferVk::RecordCommands"); in SubmitImpl()
|
H A D | PipelineLayoutVk.cpp | 55 Device* device = ToBackend(GetDevice()); in Initialize() 70 ToBackend(GetDevice())->GetFencedDeleter()->DeleteWhenUnused(mHandle); in DestroyImpl() 80 SetDebugName(ToBackend(GetDevice()), VK_OBJECT_TYPE_PIPELINE_LAYOUT, in SetLabelImpl()
|
H A D | QuerySetVk.cpp | 88 Device* device = ToBackend(GetDevice()); in Initialize() 107 ToBackend(GetDevice())->GetFencedDeleter()->DeleteWhenUnused(mHandle); in DestroyImpl() 113 SetDebugName(ToBackend(GetDevice()), VK_OBJECT_TYPE_QUERY_POOL, in SetLabelImpl()
|