Home
last modified time | relevance | path

Searched refs:DAWN_TRY (Results 1 – 25 of 132) sorted by relevance

123456

/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/
DCommandEncoder.cpp182 DAWN_TRY(ValidateEntireSubresourceCopied(src, dst, copySize)); in ValidateTextureToTextureCopyRestrictions()
193 DAWN_TRY(ValidateEntireSubresourceCopied(src, dst, copySize)); in ValidateTextureToTextureCopyRestrictions()
338 DAWN_TRY(device->ValidateObject(colorAttachment->resolveTarget)); in ValidateResolveTarget()
392 DAWN_TRY(device->ValidateObject(colorAttachment->attachment)); in ValidateRenderPassColorAttachment()
401 DAWN_TRY(ValidateOrSetColorAttachmentSampleCount(attachment, sampleCount)); in ValidateRenderPassColorAttachment()
403 DAWN_TRY(ValidateResolveTarget(device, colorAttachment)); in ValidateRenderPassColorAttachment()
405 DAWN_TRY(ValidateAttachmentArrayLayersAndLevelCount(attachment)); in ValidateRenderPassColorAttachment()
406 DAWN_TRY(ValidateOrSetAttachmentSize(attachment, width, height)); in ValidateRenderPassColorAttachment()
419 DAWN_TRY(device->ValidateObject(depthStencilAttachment->attachment)); in ValidateRenderPassDepthStencilAttachment()
440 DAWN_TRY(ValidateAttachmentArrayLayersAndLevelCount(attachment)); in ValidateRenderPassDepthStencilAttachment()
[all …]
DQueue.cpp60 DAWN_TRY(GetDevice()->ValidateObject(this)); in ValidateSubmit()
63 DAWN_TRY(GetDevice()->ValidateObject(commands[i])); in ValidateSubmit()
69 DAWN_TRY(buffer->ValidateCanUseInSubmitNow()); in ValidateSubmit()
72 DAWN_TRY(texture->ValidateCanUseInSubmitNow()); in ValidateSubmit()
77 DAWN_TRY(buffer->ValidateCanUseInSubmitNow()); in ValidateSubmit()
80 DAWN_TRY(texture->ValidateCanUseInSubmitNow()); in ValidateSubmit()
88 DAWN_TRY(GetDevice()->ValidateObject(this)); in ValidateSignal()
89 DAWN_TRY(GetDevice()->ValidateObject(fence)); in ValidateSignal()
102 DAWN_TRY(GetDevice()->ValidateObject(this)); in ValidateCreateFence()
103 DAWN_TRY(ValidateFenceDescriptor(descriptor)); in ValidateCreateFence()
DRenderPipeline.cpp31 DAWN_TRY(ValidateVertexFormat(attribute->format)); in ValidateVertexAttributeDescriptor()
63 DAWN_TRY(ValidateInputStepMode(buffer->stepMode)); in ValidateVertexBufferDescriptor()
69 DAWN_TRY(ValidateVertexAttributeDescriptor(&buffer->attributes[i], buffer->stride, in ValidateVertexBufferDescriptor()
82 DAWN_TRY(ValidateIndexFormat(descriptor->indexFormat)); in ValidateVertexInputDescriptor()
90 DAWN_TRY( in ValidateVertexInputDescriptor()
109 DAWN_TRY(ValidateFrontFace(descriptor->frontFace)); in ValidateRasterizationStateDescriptor()
110 DAWN_TRY(ValidateCullMode(descriptor->cullMode)); in ValidateRasterizationStateDescriptor()
119 DAWN_TRY(ValidateBlendOperation(descriptor->alphaBlend.operation)); in ValidateColorStateDescriptor()
120 DAWN_TRY(ValidateBlendFactor(descriptor->alphaBlend.srcFactor)); in ValidateColorStateDescriptor()
121 DAWN_TRY(ValidateBlendFactor(descriptor->alphaBlend.dstFactor)); in ValidateColorStateDescriptor()
[all …]
DSampler.cpp43 DAWN_TRY(ValidateFilterMode(descriptor->minFilter)); in ValidateSamplerDescriptor()
44 DAWN_TRY(ValidateFilterMode(descriptor->magFilter)); in ValidateSamplerDescriptor()
45 DAWN_TRY(ValidateFilterMode(descriptor->mipmapFilter)); in ValidateSamplerDescriptor()
46 DAWN_TRY(ValidateAddressMode(descriptor->addressModeU)); in ValidateSamplerDescriptor()
47 DAWN_TRY(ValidateAddressMode(descriptor->addressModeV)); in ValidateSamplerDescriptor()
48 DAWN_TRY(ValidateAddressMode(descriptor->addressModeW)); in ValidateSamplerDescriptor()
49 DAWN_TRY(ValidateCompareFunction(descriptor->compare)); in ValidateSamplerDescriptor()
DSwapChain.cpp144 DAWN_TRY(GetDevice()->ValidateObject(this)); in ValidateConfigure()
146 DAWN_TRY(ValidateTextureUsageBit(allowedUsage)); in ValidateConfigure()
147 DAWN_TRY(ValidateTextureFormat(format)); in ValidateConfigure()
157 DAWN_TRY(GetDevice()->ValidateObject(this)); in ValidateGetNextTexture()
168 DAWN_TRY(GetDevice()->ValidateObject(this)); in ValidatePresent()
169 DAWN_TRY(GetDevice()->ValidateObject(texture)); in ValidatePresent()
DBindGroup.cpp38 DAWN_TRY(device->ValidateObject(binding.buffer)); in ValidateBufferBinding()
71 DAWN_TRY(device->ValidateObject(binding.textureView)); in ValidateTextureBinding()
86 DAWN_TRY(device->ValidateObject(binding.sampler)); in ValidateSamplerBinding()
99 DAWN_TRY(device->ValidateObject(descriptor->layout)); in ValidateBindGroupDescriptor()
130 DAWN_TRY(ValidateBufferBinding(device, binding, dawn::BufferUsageBit::Uniform)); in ValidateBindGroupDescriptor()
133 DAWN_TRY(ValidateBufferBinding(device, binding, dawn::BufferUsageBit::Storage)); in ValidateBindGroupDescriptor()
136 DAWN_TRY( in ValidateBindGroupDescriptor()
140 DAWN_TRY(ValidateSamplerBinding(device, binding)); in ValidateBindGroupDescriptor()
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DCommandEncoder.cpp169 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 …]
DRenderEncoderBase.cpp90 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 …]
DQueue.cpp264 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 …]
DRenderBundleEncoder.cpp31 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()
DSwapChain.cpp75 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 …]
DSampler.cpp53 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()
DCopyTextureForBrowserHelper.cpp243 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()
DComputePassEncoder.cpp150 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()
DRenderPipeline.cpp122 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 …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DSwapChainD3D12.cpp127 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 …]
DDeviceD3D12.cpp62 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 …]
DBufferD3D12.cpp101 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 …]
DQueueD3D12.cpp35 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()
DCommandAllocatorManager.cpp34 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()
DBackendD3D12.cpp73 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()
/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/
DErrorTests.cpp86 DAWN_TRY(ReturnSuccess()); in TEST()
103 DAWN_TRY(ReturnError()); in TEST()
124 DAWN_TRY(ReturnError()); in TEST()
129 DAWN_TRY(SingleTry()); in TEST()
203 DAWN_TRY(ReturnError()); in TEST()
208 DAWN_TRY(SingleTry()); in TEST()
280 DAWN_TRY(ReturnError()); in TEST()
300 DAWN_TRY(ReturnError()); in TEST()
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DVulkanInfo.cpp39 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()
/third_party/skia/third_party/externals/dawn/generator/templates/opengl/
DOpenGLFunctionsBase.cpp33 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()}}"));
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DErrorTests.cpp76 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()

123456