/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | CommandEncoder.cpp | 169 DAWN_TRY(device->ValidateObject(colorAttachment.resolveTarget)); in ValidateResolveTarget() 170 DAWN_TRY(ValidateCanUseAs(colorAttachment.resolveTarget->GetTexture(), in ValidateResolveTarget() 221 DAWN_TRY(device->ValidateObject(attachment)); in ValidateRenderPassColorAttachment() 222 DAWN_TRY( in ValidateRenderPassColorAttachment() 230 DAWN_TRY(ValidateLoadOp(colorAttachment.loadOp)); in ValidateRenderPassColorAttachment() 231 DAWN_TRY(ValidateStoreOp(colorAttachment.storeOp)); in ValidateRenderPassColorAttachment() 242 DAWN_TRY(ValidateOrSetColorAttachmentSampleCount(attachment, sampleCount)); in ValidateRenderPassColorAttachment() 244 DAWN_TRY(ValidateResolveTarget(device, colorAttachment)); in ValidateRenderPassColorAttachment() 246 DAWN_TRY(ValidateAttachmentArrayLayersAndLevelCount(attachment)); in ValidateRenderPassColorAttachment() 247 DAWN_TRY(ValidateOrSetAttachmentSize(attachment, width, height)); in ValidateRenderPassColorAttachment() [all …]
|
D | Queue.cpp | 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() 267 DAWN_TRY(buffer->ValidateCanUseOnQueueNow()); in WriteBuffer() 309 DAWN_TRY(ValidateWriteTexture(destination, dataSize, dataLayout, writeSize)); in WriteTextureInternal() 393 DAWN_TRY(GetDevice()->ValidateObject(this)); in ValidateSubmit() 396 DAWN_TRY(GetDevice()->ValidateObject(commands[i])); in ValidateSubmit() 397 DAWN_TRY(commands[i]->ValidateCanUseInSubmitNow()); in ValidateSubmit() 403 DAWN_TRY(buffer->ValidateCanUseOnQueueNow()); in ValidateSubmit() 407 DAWN_TRY(texture->ValidateCanUseInSubmitNow()); in ValidateSubmit() [all …]
|
D | RenderEncoderBase.cpp | 90 DAWN_TRY(mCommandBufferState.ValidateCanDraw()); in APIDraw() 95 DAWN_TRY(mCommandBufferState.ValidateBufferInRangeForVertexBuffer(vertexCount, in APIDraw() 97 DAWN_TRY(mCommandBufferState.ValidateBufferInRangeForInstanceBuffer( in APIDraw() 122 DAWN_TRY(mCommandBufferState.ValidateCanDrawIndexed()); in APIDrawIndexed() 130 DAWN_TRY( in APIDrawIndexed() 136 DAWN_TRY(mCommandBufferState.ValidateBufferInRangeForVertexBuffer(0, 0)); in APIDrawIndexed() 137 DAWN_TRY(mCommandBufferState.ValidateBufferInRangeForInstanceBuffer( in APIDrawIndexed() 159 DAWN_TRY(GetDevice()->ValidateObject(indirectBuffer)); in APIDrawIndirect() 160 DAWN_TRY(ValidateCanUseAs(indirectBuffer, wgpu::BufferUsage::Indirect)); in APIDrawIndirect() 161 DAWN_TRY(mCommandBufferState.ValidateCanDraw()); in APIDrawIndirect() [all …]
|
D | SwapChain.cpp | 75 DAWN_TRY(ValidatePresentMode(descriptor->presentMode)); in ValidateSwapChainDescriptor() 232 DAWN_TRY(GetDevice()->ValidateIsAlive()); in ValidateConfigure() 233 DAWN_TRY(GetDevice()->ValidateObject(this)); in ValidateConfigure() 235 DAWN_TRY(ValidateTextureUsage(allowedUsage)); in ValidateConfigure() 236 DAWN_TRY(ValidateTextureFormat(format)); in ValidateConfigure() 246 DAWN_TRY(GetDevice()->ValidateIsAlive()); in ValidateGetCurrentTextureView() 247 DAWN_TRY(GetDevice()->ValidateObject(this)); in ValidateGetCurrentTextureView() 257 DAWN_TRY(GetDevice()->ValidateIsAlive()); in ValidatePresent() 258 DAWN_TRY(GetDevice()->ValidateObject(this)); in ValidatePresent() 390 DAWN_TRY(GetDevice()->ValidateIsAlive()); in ValidatePresent() [all …]
|
D | RenderBundleEncoder.cpp | 31 DAWN_TRY(ValidateTextureFormat(textureFormat)); in ValidateColorAttachmentFormat() 43 DAWN_TRY(ValidateTextureFormat(textureFormat)); in ValidateDepthStencilAttachmentFormat() 146 DAWN_TRY(mBundleEncodingContext.Finish()); in FinishImpl() 150 DAWN_TRY(GetDevice()->ValidateObject(this)); in FinishImpl() 151 DAWN_TRY(ValidateProgrammableEncoderEnd()); in FinishImpl() 152 DAWN_TRY(ValidateFinish(usages)); in FinishImpl() 162 DAWN_TRY(GetDevice()->ValidateObject(this)); in ValidateFinish() 163 DAWN_TRY(ValidateSyncScopeResourceUsage(usages)); in ValidateFinish()
|
D | Sampler.cpp | 53 DAWN_TRY(ValidateFilterMode(descriptor->minFilter)); in ValidateSamplerDescriptor() 54 DAWN_TRY(ValidateFilterMode(descriptor->magFilter)); in ValidateSamplerDescriptor() 55 DAWN_TRY(ValidateFilterMode(descriptor->mipmapFilter)); in ValidateSamplerDescriptor() 56 DAWN_TRY(ValidateAddressMode(descriptor->addressModeU)); in ValidateSamplerDescriptor() 57 DAWN_TRY(ValidateAddressMode(descriptor->addressModeV)); in ValidateSamplerDescriptor() 58 DAWN_TRY(ValidateAddressMode(descriptor->addressModeW)); in ValidateSamplerDescriptor() 64 DAWN_TRY(ValidateCompareFunction(descriptor->compare)); in ValidateSamplerDescriptor()
|
D | CopyTextureForBrowserHelper.cpp | 243 DAWN_TRY(device->ValidateObject(source->texture)); in ValidateCopyTextureForBrowser() 244 DAWN_TRY(device->ValidateObject(destination->texture)); in ValidateCopyTextureForBrowser() 256 DAWN_TRY(ValidateTextureToTextureCopyCommonRestrictions(*source, *destination, *copySize)); in ValidateCopyTextureForBrowser() 269 DAWN_TRY(ValidateCanUseAs(source->texture, wgpu::TextureUsage::CopySrc)); in ValidateCopyTextureForBrowser() 270 DAWN_TRY(ValidateCanUseAs(source->texture, wgpu::TextureUsage::TextureBinding)); in ValidateCopyTextureForBrowser() 272 DAWN_TRY(ValidateCanUseAs(destination->texture, wgpu::TextureUsage::CopyDst)); in ValidateCopyTextureForBrowser() 273 DAWN_TRY(ValidateCanUseAs(destination->texture, wgpu::TextureUsage::RenderAttachment)); in ValidateCopyTextureForBrowser() 275 DAWN_TRY(ValidateCopyTextureFormatConversion(source->texture->GetFormat().format, in ValidateCopyTextureForBrowser() 279 DAWN_TRY(ValidateAlphaOp(options->alphaOp)); in ValidateCopyTextureForBrowser()
|
D | ComputePassEncoder.cpp | 150 DAWN_TRY(ValidateProgrammableEncoderEnd()); in APIEndPass() 167 DAWN_TRY(mCommandBufferState.ValidateCanDispatch()); in APIDispatch() 267 DAWN_TRY(scratchBuffer.EnsureCapacity(scratchBufferSize)); in TransformIndirectDispatchBuffer() 299 DAWN_TRY(GetDevice()->ValidateObject(indirectBuffer)); in APIDispatchIndirect() 300 DAWN_TRY(ValidateCanUseAs(indirectBuffer, wgpu::BufferUsage::Indirect)); in APIDispatchIndirect() 301 DAWN_TRY(mCommandBufferState.ValidateCanDispatch()); in APIDispatchIndirect() 365 DAWN_TRY(GetDevice()->ValidateObject(pipeline)); in APISetPipeline() 389 DAWN_TRY(ValidateSetBindGroup(groupIndex, group, dynamicOffsetCount, in APISetBindGroup() 410 DAWN_TRY(GetDevice()->ValidateObject(querySet)); in APIWriteTimestamp() 411 DAWN_TRY(ValidateTimestampQuery(querySet, queryIndex)); in APIWriteTimestamp()
|
D | RenderPipeline.cpp | 122 DAWN_TRY(ValidateVertexFormat(attribute->format)); in ValidateVertexAttribute() 177 DAWN_TRY(ValidateVertexStepMode(buffer->stepMode)); in ValidateVertexBufferLayout() 239 DAWN_TRY(ValidateSingleSType(descriptor->nextInChain, in ValidatePrimitiveState() 246 DAWN_TRY(ValidatePrimitiveTopology(descriptor->topology)); in ValidatePrimitiveState() 247 DAWN_TRY(ValidateIndexFormat(descriptor->stripIndexFormat)); in ValidatePrimitiveState() 248 DAWN_TRY(ValidateFrontFace(descriptor->frontFace)); in ValidatePrimitiveState() 249 DAWN_TRY(ValidateCullMode(descriptor->cullMode)); in ValidatePrimitiveState() 270 DAWN_TRY(ValidateCompareFunction(descriptor->depthCompare)); in ValidateDepthStencilState() 271 DAWN_TRY(ValidateCompareFunction(descriptor->stencilFront.compare)); in ValidateDepthStencilState() 272 DAWN_TRY(ValidateStencilOperation(descriptor->stencilFront.failOp)); in ValidateDepthStencilState() [all …]
|
D | Device.cpp | 854 DAWN_TRY(ValidateShaderModuleDescriptor(this, descriptor, parseResult, in GetOrCreateShaderModule() 1092 DAWN_TRY(ValidateIsAlive()); in Tick() 1098 DAWN_TRY(CheckPassedSerials()); in Tick() 1099 DAWN_TRY(TickImpl()); in Tick() 1233 DAWN_TRY(ValidateIsAlive()); in CreateBindGroup() 1244 DAWN_TRY(ValidateIsAlive()); in CreateBindGroupLayout() 1254 DAWN_TRY(ValidateIsAlive()); in CreateBuffer() 1264 DAWN_TRY(buffer->MapAtCreation()); in CreateBuffer() 1272 DAWN_TRY(ValidateIsAlive()); in CreateComputePipeline() 1274 DAWN_TRY(ValidateComputePipelineDescriptor(this, descriptor)); in CreateComputePipeline() [all …]
|
D | Pipeline.cpp | 32 DAWN_TRY(device->ValidateObject(module)); in ValidateProgrammableStage() 45 DAWN_TRY(ValidateCompatibilityWithPipelineLayout(device, metadata, layout)); in ValidateProgrammableStage() 187 DAWN_TRY(GetDevice()->ValidateIsAlive()); in ValidateGetBindGroupLayout() 188 DAWN_TRY(GetDevice()->ValidateObject(this)); in ValidateGetBindGroupLayout() 189 DAWN_TRY(GetDevice()->ValidateObject(mLayout.Get())); in ValidateGetBindGroupLayout() 199 DAWN_TRY(ValidateGetBindGroupLayout(groupIndexIn)); in GetBindGroupLayout()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | SwapChainD3D12.cpp | 127 DAWN_TRY(device->ExecutePendingCommandContext()); in OnBeforePresent() 140 DAWN_TRY(swapchain->Initialize(previousSwapChain)); in Create() 195 DAWN_TRY(previousD3D12SwapChain->DetachAndWaitForDeallocation()); in Initialize() 219 DAWN_TRY(previousD3D12SwapChain->DetachAndWaitForDeallocation()); in Initialize() 220 DAWN_TRY( in Initialize() 247 DAWN_TRY(CheckHRESULT(device->GetFactory()->QueryInterface(IID_PPV_ARGS(&factory2)), in InitializeSwapChainFromScratch() 253 DAWN_TRY(CheckHRESULT( in InitializeSwapChainFromScratch() 261 DAWN_TRY(CheckHRESULT( in InitializeSwapChainFromScratch() 269 DAWN_TRY(CheckHRESULT( in InitializeSwapChainFromScratch() 274 DAWN_TRY(CheckHRESULT(GetSurface()->GetSwapChainPanel()->QueryInterface( in InitializeSwapChainFromScratch() [all …]
|
D | DeviceD3D12.cpp | 62 DAWN_TRY(device->Initialize()); in Create() 77 DAWN_TRY( in Initialize() 87 DAWN_TRY(CheckHRESULT(mCommandQueue->GetTimestampFrequency(&frequency), in Initialize() 97 DAWN_TRY( in Initialize() 165 DAWN_TRY(DeviceBase::Initialize(new Queue(this))); in Initialize() 168 DAWN_TRY(NextSerial()); in Initialize() 172 DAWN_TRY(ApplyUseDxcToggle()); in Initialize() 174 DAWN_TRY(CreateZeroBuffer()); in Initialize() 220 DAWN_TRY(ToBackend(GetAdapter())->GetBackend()->EnsureDxcCompiler()); in ApplyUseDxcToggle() 221 DAWN_TRY(ToBackend(GetAdapter())->GetBackend()->EnsureDxcLibrary()); in ApplyUseDxcToggle() [all …]
|
D | BufferD3D12.cpp | 101 DAWN_TRY(buffer->Initialize(descriptor->mappedAtCreation)); in Create() 167 DAWN_TRY(ClearBuffer(commandRecordingContext, uint8_t(1u))); in Initialize() 181 DAWN_TRY(ClearBuffer(commandRecordingContext, 0, clearOffset, clearSize)); in Initialize() 324 DAWN_TRY(ToBackend(GetDevice())->GetResidencyManager()->LockAllocation(heap)); in MapInternal() 334 DAWN_TRY(CheckHRESULT(GetD3D12Resource()->Map(0, &range, &mMappedData), contextInfo)); in MapInternal() 351 DAWN_TRY(MapInternal(true, 0, size_t(GetAllocatedSize()), "D3D12 map at creation")); in MapAtCreationImpl() 359 DAWN_TRY(EnsureDataInitialized(commandContext)); in MapAsyncImpl() 407 DAWN_TRY(InitializeToZero(commandContext)); in EnsureDataInitialized() 424 DAWN_TRY(InitializeToZero(commandContext)); in EnsureDataInitializedAsDestination() 437 DAWN_TRY(InitializeToZero(commandContext)); in EnsureDataInitializedAsDestination() [all …]
|
D | QueueD3D12.cpp | 35 DAWN_TRY(device->Tick()); in SubmitImpl() 43 DAWN_TRY(ToBackend(commands[i])->RecordCommands(commandContext)); in SubmitImpl() 48 DAWN_TRY(device->ExecutePendingCommandContext()); in SubmitImpl() 50 DAWN_TRY(device->NextSerial()); in SubmitImpl()
|
D | CommandAllocatorManager.cpp | 34 DAWN_TRY(device->WaitForSerial(firstSerial)); in ReserveCommandAllocator() 35 DAWN_TRY(Tick(firstSerial)); in ReserveCommandAllocator() 46 DAWN_TRY(CheckHRESULT(device->GetD3D12Device()->CreateCommandAllocator( in ReserveCommandAllocator() 65 DAWN_TRY(CheckHRESULT(it.commandAllocator->Reset(), "D3D12 reset command allocator")); in Tick()
|
D | BackendD3D12.cpp | 73 DAWN_TRY(CheckHRESULT(dxgiAdapter.As(&dxgiAdapter3), "DXGIAdapter retrieval")); in CreateAdapterFromIDXGIAdapter() 76 DAWN_TRY(adapter->Initialize()); in CreateAdapterFromIDXGIAdapter() 89 DAWN_TRY(mFunctions->LoadFunctions()); in Initialize() 106 DAWN_TRY(CheckHRESULT( in EnsureDxcLibrary() 116 DAWN_TRY(CheckHRESULT( in EnsureDxcCompiler() 126 DAWN_TRY(CheckHRESULT( in EnsureDxcValidator()
|
D | AdapterD3D12.cpp | 74 DAWN_TRY(InitializeDebugLayerFilters()); in InitializeImpl() 144 DAWN_TRY(CheckHRESULT(mD3d12Device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS, in InitializeSupportedLimitsImpl() 154 DAWN_TRY( in InitializeSupportedLimitsImpl() 363 DAWN_TRY(CheckHRESULT(mD3d12Device.As(&infoQueue), in InitializeDebugLayerFilters() 368 DAWN_TRY(CheckHRESULT(infoQueue->PushStorageFilter(&filter), in InitializeDebugLayerFilters() 371 DAWN_TRY(CheckHRESULT(infoQueue->PushRetrievalFilter(&filter), in InitializeDebugLayerFilters() 407 DAWN_TRY(Initialize()); in ResetInternalDeviceForTestingImpl()
|
D | CommandRecordingContext.cpp | 38 DAWN_TRY(std::move(error)); in Open() 42 DAWN_TRY(CheckHRESULT( in Open() 71 DAWN_TRY(std::move(error)); in ExecuteCommandList() 73 DAWN_TRY(device->GetResidencyManager()->EnsureHeapsAreResident( in ExecuteCommandList()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | VulkanInfo.cpp | 39 DAWN_TRY(CheckVkSuccess(vkFunctions.EnumerateInstanceExtensionProperties( in GatherInstanceExtensions() 70 DAWN_TRY(CheckVkSuccess(vkFunctions.EnumerateInstanceVersion(&info.apiVersion), in GatherGlobalInfo() 88 DAWN_TRY(CheckVkSuccess( in GatherGlobalInfo() 133 DAWN_TRY(CheckVkSuccess( in GatherPhysicalDevices() 180 DAWN_TRY(CheckVkSuccess(vkFunctions.EnumerateDeviceLayerProperties( in GatherDeviceInfo() 196 DAWN_TRY( in GatherDeviceInfo() 279 DAWN_TRY(CheckVkSuccess(vkFunctions.GetPhysicalDeviceSurfaceCapabilitiesKHR( in GatherSurfaceInfo() 290 DAWN_TRY(CheckVkSuccess(vkFunctions.GetPhysicalDeviceSurfaceSupportKHR( in GatherSurfaceInfo() 308 DAWN_TRY(CheckVkSuccess(vkFunctions.GetPhysicalDeviceSurfaceFormatsKHR( in GatherSurfaceInfo() 324 DAWN_TRY(CheckVkSuccess(vkFunctions.GetPhysicalDeviceSurfacePresentModesKHR( in GatherSurfaceInfo()
|
D | SwapChainVk.cpp | 80 DAWN_TRY(device->SubmitPendingCommands()); in OnBeforePresent() 110 DAWN_TRY(CheckVkSuccess( in CreateVulkanSurface() 129 DAWN_TRY(CheckVkSuccess( in CreateVulkanSurface() 148 DAWN_TRY(CheckVkSuccess( in CreateVulkanSurface() 172 DAWN_TRY(CheckVkSuccess( in CreateVulkanSurface() 222 DAWN_TRY(swapchain->Initialize(previousSwapChain)); in Create() 307 DAWN_TRY(CheckVkSuccess(device->fn.CreateSwapchainKHR(device->GetVkDevice(), &createInfo, in Initialize() 314 DAWN_TRY(CheckVkSuccess( in Initialize() 319 DAWN_TRY(CheckVkSuccess( in Initialize() 514 DAWN_TRY(device->SubmitPendingCommands()); in PresentImpl() [all …]
|
D | QueueVk.cpp | 44 DAWN_TRY(device->Tick()); in SubmitImpl() 50 DAWN_TRY(ToBackend(commands[i])->RecordCommands(recordingContext)); in SubmitImpl() 54 DAWN_TRY(device->SubmitPendingCommands()); in SubmitImpl()
|
D | DeviceVk.cpp | 51 DAWN_TRY(device->Initialize()); in Create() 79 DAWN_TRY(functions->LoadDeviceProcs(mVkDevice, mDeviceInfo)); in Initialize() 94 DAWN_TRY(PrepareRecordingContext()); in Initialize() 192 DAWN_TRY(SubmitPendingCommands()); in TickImpl() 248 DAWN_TRY(CheckVkSuccess(fn.EndCommandBuffer(mRecordingContext.commandBuffer), in SubmitPendingCommands() 294 DAWN_TRY(PrepareRecordingContext()); in SubmitPendingCommands() 454 DAWN_TRY(CheckVkSuccess(fn.CreateDevice(physicalDevice, &createInfo, nullptr, &mVkDevice), in CreateDevice() 522 DAWN_TRY(CheckVkSuccess(fn.ResetFences(mVkDevice, 1, &*fence), "vkResetFences")); in GetUnusedFence() 534 DAWN_TRY(CheckVkSuccess(fn.CreateFence(mVkDevice, &createInfo, nullptr, &*fence), in GetUnusedFence() 553 DAWN_TRY(CheckVkSuccess(::VkResult(result), "GetFenceStatus")); in CheckAndUpdateCompletedSerials() [all …]
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
D | ErrorTests.cpp | 76 DAWN_TRY(ReturnSuccess()); in TEST() 91 DAWN_TRY(ReturnError()); in TEST() 109 DAWN_TRY(ReturnError()); in TEST() 114 DAWN_TRY(SingleTry()); in TEST() 182 DAWN_TRY(ReturnError()); in TEST() 187 DAWN_TRY(SingleTry()); in TEST() 324 DAWN_TRY(ReturnError()); in TEST() 341 DAWN_TRY(ReturnError()); in TEST()
|
/third_party/skia/third_party/externals/dawn/generator/templates/opengl/ |
D | OpenGLFunctionsBase.cpp | 33 DAWN_TRY(LoadProc(getProc, &{{proc.ProcName()}}, "{{proc.glProcName()}}")); in LoadOpenGLESProcs() 42 DAWN_TRY(LoadProc(getProc, &{{proc.ProcName()}}, "{{proc.glProcName()}}")); in LoadOpenGLESProcs() 54 DAWN_TRY(LoadProc(getProc, &{{proc.ProcName()}}, "{{proc.glProcName()}}")); 63 DAWN_TRY(LoadProc(getProc, &{{proc.ProcName()}}, "{{proc.glProcName()}}"));
|