/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | BindGroup.cpp | 39 DAWN_INVALID_IF(entry.buffer == nullptr, "Binding entry buffer not set."); in ValidateBufferBinding() 41 DAWN_INVALID_IF(entry.sampler != nullptr || entry.textureView != nullptr, in ValidateBufferBinding() 44 DAWN_INVALID_IF(entry.nextInChain != nullptr, "nextInChain must be nullptr."); in ValidateBufferBinding() 80 DAWN_INVALID_IF(entry.offset > bufferSize, in ValidateBufferBinding() 87 DAWN_INVALID_IF(bindingSize > bufferSize, in ValidateBufferBinding() 91 DAWN_INVALID_IF(bindingSize == 0, "Binding size is zero"); in ValidateBufferBinding() 95 DAWN_INVALID_IF( in ValidateBufferBinding() 100 DAWN_INVALID_IF(!IsAligned(entry.offset, requiredBindingAlignment), in ValidateBufferBinding() 104 DAWN_INVALID_IF(!(entry.buffer->GetUsage() & requiredUsage), in ValidateBufferBinding() 108 DAWN_INVALID_IF(bindingSize < bindingInfo.buffer.minBindingSize, in ValidateBufferBinding() [all …]
|
D | CommandValidation.cpp | 39 DAWN_INVALID_IF(!readOnly && !singleUse, in ValidateSyncScopeResourceUsage() 66 DAWN_INVALID_IF(querySet->GetQueryType() != wgpu::QueryType::Timestamp, in ValidateTimestampQuery() 69 DAWN_INVALID_IF(queryIndex >= querySet->GetQueryCount(), in ValidateTimestampQuery() 82 DAWN_INVALID_IF(bufferOffset % 4 != 0, "BufferOffset (%u) is not a multiple of 4.", in ValidateWriteBuffer() 85 DAWN_INVALID_IF(size % 4 != 0, "Size (%u) is not a multiple of 4.", size); in ValidateWriteBuffer() 88 DAWN_INVALID_IF(bufferOffset > bufferSize || size > (bufferSize - bufferOffset), in ValidateWriteBuffer() 92 DAWN_INVALID_IF(!(buffer->GetUsage() & wgpu::BufferUsage::CopyDst), in ValidateWriteBuffer() 145 DAWN_INVALID_IF( in ComputeRequiredBytesInCopy() 165 DAWN_INVALID_IF(!fitsInBuffer, in ValidateCopySizeFitsInBuffer() 204 DAWN_INVALID_IF( in ValidateLinearTextureData() [all …]
|
D | QuerySet.cpp | 43 DAWN_INVALID_IF(descriptor->nextInChain != nullptr, "nextInChain must be nullptr"); in ValidateQuerySetDescriptor() 47 DAWN_INVALID_IF(descriptor->count > kMaxQueryCount, in ValidateQuerySetDescriptor() 53 DAWN_INVALID_IF(descriptor->pipelineStatisticsCount != 0, in ValidateQuerySetDescriptor() 61 DAWN_INVALID_IF(device->IsToggleEnabled(Toggle::DisallowUnsafeAPIs), in ValidateQuerySetDescriptor() 65 DAWN_INVALID_IF( in ValidateQuerySetDescriptor() 69 DAWN_INVALID_IF(descriptor->pipelineStatisticsCount == 0, in ValidateQuerySetDescriptor() 78 DAWN_INVALID_IF(!res.second, "Statistic %s is specified more than once.", in ValidateQuerySetDescriptor() 84 DAWN_INVALID_IF(device->IsToggleEnabled(Toggle::DisallowUnsafeAPIs), in ValidateQuerySetDescriptor() 88 DAWN_INVALID_IF(!device->IsFeatureEnabled(Feature::TimestampQuery), in ValidateQuerySetDescriptor() 91 DAWN_INVALID_IF(descriptor->pipelineStatisticsCount != 0, in ValidateQuerySetDescriptor() [all …]
|
D | RenderEncoderBase.cpp | 92 DAWN_INVALID_IF(mDisableBaseInstance && firstInstance != 0, in APIDraw() 124 DAWN_INVALID_IF(mDisableBaseInstance && firstInstance != 0, in APIDrawIndexed() 127 DAWN_INVALID_IF(mDisableBaseVertex && baseVertex != 0, in APIDrawIndexed() 163 DAWN_INVALID_IF(indirectOffset % 4 != 0, in APIDrawIndirect() 166 DAWN_INVALID_IF( in APIDrawIndirect() 194 DAWN_INVALID_IF(indirectOffset % 4 != 0, in APIDrawIndexedIndirect() 197 DAWN_INVALID_IF( in APIDrawIndexedIndirect() 242 DAWN_INVALID_IF( in APISetPipeline() 247 DAWN_INVALID_IF(pipeline->WritesDepth() && mDepthReadOnly, in APISetPipeline() 251 DAWN_INVALID_IF(pipeline->WritesStencil() && mStencilReadOnly, in APISetPipeline() [all …]
|
D | CommandBufferStateTracker.cpp | 101 DAWN_INVALID_IF(vertexBuffer.usedBytesInStride > bufferSize, in ValidateBufferInRangeForVertexBuffer() 112 DAWN_INVALID_IF( in ValidateBufferInRangeForVertexBuffer() 139 DAWN_INVALID_IF(vertexBuffer.usedBytesInStride > bufferSize, in ValidateBufferInRangeForInstanceBuffer() 150 DAWN_INVALID_IF( in ValidateBufferInRangeForInstanceBuffer() 168 DAWN_INVALID_IF( in ValidateIndexBufferInRange() 241 DAWN_INVALID_IF(aspects[VALIDATION_ASPECT_PIPELINE], "No pipeline set."); in CheckMissingAspects() 244 DAWN_INVALID_IF(!mIndexBufferSet, "Index buffer was not set."); in CheckMissingAspects() 250 DAWN_INVALID_IF( in CheckMissingAspects() 257 DAWN_INVALID_IF( in CheckMissingAspects() 272 DAWN_INVALID_IF(aspects[VALIDATION_ASPECT_VERTEX_BUFFERS], in CheckMissingAspects() [all …]
|
D | Texture.cpp | 96 DAWN_INVALID_IF(!IsValidSampleCount(descriptor->sampleCount), in ValidateSampleCount() 101 DAWN_INVALID_IF(descriptor->mipLevelCount > 1, in ValidateSampleCount() 108 DAWN_INVALID_IF(descriptor->dimension != wgpu::TextureDimension::e2D, in ValidateSampleCount() 112 DAWN_INVALID_IF(descriptor->size.depthOrArrayLayers > 1, in ValidateSampleCount() 119 DAWN_INVALID_IF(!format->isRenderable, in ValidateSampleCount() 126 DAWN_INVALID_IF(usage & wgpu::TextureUsage::StorageBinding, in ValidateSampleCount() 137 DAWN_INVALID_IF( in ValidateTextureViewDimensionCompatibility() 144 DAWN_INVALID_IF( in ValidateTextureViewDimensionCompatibility() 154 DAWN_INVALID_IF( in ValidateTextureViewDimensionCompatibility() 196 DAWN_INVALID_IF(descriptor->size.width > maxExtent.width || in ValidateTextureSize() [all …]
|
D | CommandEncoder.cpp | 49 DAWN_INVALID_IF(dataSize % 4 != 0, "Copy size (%u) is not a multiple of 4.", dataSize); in ValidateB2BCopyAlignment() 52 DAWN_INVALID_IF( in ValidateB2BCopyAlignment() 61 DAWN_INVALID_IF(texture->GetSampleCount() > 1, in ValidateTextureSampleCountInBufferCopyCommands() 73 DAWN_INVALID_IF(layout.offset % 4 != 0, in ValidateLinearTextureCopyOffset() 77 DAWN_INVALID_IF(layout.offset % blockInfo.byteSize != 0, in ValidateLinearTextureCopyOffset() 112 DAWN_INVALID_IF(attachment->GetLayerCount() > 1, in ValidateAttachmentArrayLayersAndLevelCount() 116 DAWN_INVALID_IF(attachment->GetLevelCount() > 1, in ValidateAttachmentArrayLayersAndLevelCount() 135 DAWN_INVALID_IF( in ValidateOrSetAttachmentSize() 151 DAWN_INVALID_IF( in ValidateOrSetColorAttachmentSampleCount() 173 DAWN_INVALID_IF( in ValidateResolveTarget() [all …]
|
D | BindingInfo.cpp | 125 DAWN_INVALID_IF( in ValidateBindingCounts() 131 DAWN_INVALID_IF( in ValidateBindingCounts() 138 DAWN_INVALID_IF( in ValidateBindingCounts() 148 DAWN_INVALID_IF( in ValidateBindingCounts() 156 DAWN_INVALID_IF( in ValidateBindingCounts() 167 DAWN_INVALID_IF( in ValidateBindingCounts() 173 DAWN_INVALID_IF( in ValidateBindingCounts() 184 DAWN_INVALID_IF( in ValidateBindingCounts() 191 DAWN_INVALID_IF( in ValidateBindingCounts() 199 DAWN_INVALID_IF( in ValidateBindingCounts() [all …]
|
D | RenderPassEncoder.cpp | 39 DAWN_INVALID_IF(it != queryAvailabilityMap.end() && it->second[queryIndex], in ValidateQueryIndexOverwrite() 118 DAWN_INVALID_IF( in APIEndPass() 170 DAWN_INVALID_IF( in APISetViewport() 177 DAWN_INVALID_IF( in APISetViewport() 183 DAWN_INVALID_IF( in APISetViewport() 191 DAWN_INVALID_IF(minDepth < 0 || minDepth > maxDepth || maxDepth > 1, in APISetViewport() 220 DAWN_INVALID_IF( in APISetScissorRect() 253 DAWN_INVALID_IF( in APIExecuteBundles() 260 DAWN_INVALID_IF( in APIExecuteBundles() 267 DAWN_INVALID_IF(stencilReadOnlyInPass && !stencilReadOnlyInBundle, in APIExecuteBundles() [all …]
|
D | RenderPipeline.cpp | 125 DAWN_INVALID_IF( in ValidateVertexAttribute() 136 DAWN_INVALID_IF( in ValidateVertexAttribute() 146 DAWN_INVALID_IF( in ValidateVertexAttribute() 153 DAWN_INVALID_IF(attribute->offset % std::min(4u, formatInfo.byteSize) != 0, in ValidateVertexAttribute() 157 DAWN_INVALID_IF(metadata.usedVertexInputs[location] && in ValidateVertexAttribute() 164 DAWN_INVALID_IF((*attributesSetMask)[location], in ValidateVertexAttribute() 178 DAWN_INVALID_IF( in ValidateVertexBufferLayout() 183 DAWN_INVALID_IF(buffer->arrayStride % 4 != 0, in ValidateVertexBufferLayout() 199 DAWN_INVALID_IF(descriptor->nextInChain != nullptr, "nextInChain must be nullptr."); in ValidateVertexState() 201 DAWN_INVALID_IF( in ValidateVertexState() [all …]
|
D | SwapChain.cpp | 61 DAWN_INVALID_IF(surface != nullptr, in ValidateSwapChainDescriptor() 67 DAWN_INVALID_IF(!impl->Init || !impl->Destroy || !impl->Configure || in ValidateSwapChainDescriptor() 72 DAWN_INVALID_IF(surface == nullptr, in ValidateSwapChainDescriptor() 79 DAWN_INVALID_IF(descriptor->format != wgpu::TextureFormat::BGRA8Unorm, in ValidateSwapChainDescriptor() 83 DAWN_INVALID_IF(descriptor->usage != wgpu::TextureUsage::RenderAttachment, in ValidateSwapChainDescriptor() 87 DAWN_INVALID_IF(descriptor->width == 0 || descriptor->height == 0, in ValidateSwapChainDescriptor() 91 DAWN_INVALID_IF( in ValidateSwapChainDescriptor() 238 DAWN_INVALID_IF(width == 0 || height == 0, in ValidateConfigure() 250 DAWN_INVALID_IF(mWidth == 0, "%s was not configured prior to calling GetNextTexture.", in ValidateGetCurrentTextureView() 260 DAWN_INVALID_IF( in ValidatePresent() [all …]
|
D | ShaderModule.cpp | 483 DAWN_INVALID_IF(bindingIt == layoutBindings.end(), "Binding doesn't exist in %s.", in ValidateCompatibilityOfSingleBindingWithLayout() 490 DAWN_INVALID_IF(layoutInfo.bindingType != shaderInfo.bindingType, in ValidateCompatibilityOfSingleBindingWithLayout() 495 DAWN_INVALID_IF( in ValidateCompatibilityOfSingleBindingWithLayout() 502 DAWN_INVALID_IF( in ValidateCompatibilityOfSingleBindingWithLayout() 509 DAWN_INVALID_IF((SampleTypeToSampleTypeBit(layoutInfo.texture.sampleType) & in ValidateCompatibilityOfSingleBindingWithLayout() 514 DAWN_INVALID_IF( in ValidateCompatibilityOfSingleBindingWithLayout() 526 DAWN_INVALID_IF( in ValidateCompatibilityOfSingleBindingWithLayout() 532 DAWN_INVALID_IF( in ValidateCompatibilityOfSingleBindingWithLayout() 538 DAWN_INVALID_IF(layoutInfo.storageTexture.viewDimension != in ValidateCompatibilityOfSingleBindingWithLayout() 565 DAWN_INVALID_IF( in ValidateCompatibilityOfSingleBindingWithLayout() [all …]
|
D | RenderBundleEncoder.cpp | 34 DAWN_INVALID_IF(!format->IsColor() || !format->isRenderable, in ValidateColorAttachmentFormat() 46 DAWN_INVALID_IF(!format->HasDepthOrStencil() || !format->isRenderable, in ValidateDepthStencilAttachmentFormat() 49 DAWN_INVALID_IF( in ValidateDepthStencilAttachmentFormat() 61 DAWN_INVALID_IF(!IsValidSampleCount(descriptor->sampleCount), in ValidateRenderBundleEncoderDescriptor() 64 DAWN_INVALID_IF( in ValidateRenderBundleEncoderDescriptor() 69 DAWN_INVALID_IF(descriptor->colorFormatsCount == 0 && in ValidateRenderBundleEncoderDescriptor()
|
D | ExternalTexture.cpp | 33 DAWN_INVALID_IF( in ValidateExternalTexturePlane() 38 DAWN_INVALID_IF(textureView->GetDimension() != wgpu::TextureViewDimension::e2D, in ValidateExternalTexturePlane() 42 DAWN_INVALID_IF(textureView->GetLevelCount() > 1, in ValidateExternalTexturePlane() 46 DAWN_INVALID_IF(textureView->GetTexture()->GetSampleCount() != 1, in ValidateExternalTexturePlane() 113 DAWN_INVALID_IF(mState == ExternalTextureState::Destroyed, in ValidateCanUseInSubmitNow()
|
D | Buffer.cpp | 100 DAWN_INVALID_IF(descriptor->nextInChain != nullptr, "nextInChain must be nullptr"); in ValidateBufferDescriptor() 107 DAWN_INVALID_IF( in ValidateBufferDescriptor() 115 DAWN_INVALID_IF( in ValidateBufferDescriptor() 121 DAWN_INVALID_IF(descriptor->mappedAtCreation && descriptor->size % 4 != 0, in ValidateBufferDescriptor() 442 DAWN_INVALID_IF(uint64_t(offset) > mSize, in ValidateMapAsync() 446 DAWN_INVALID_IF(offset % 8 != 0, "Offset (%u) must be a multiple of 8.", offset); in ValidateMapAsync() 447 DAWN_INVALID_IF(size % 4 != 0, "Size (%u) must be a multiple of 4.", size); in ValidateMapAsync() 449 DAWN_INVALID_IF(uint64_t(size) > mSize - uint64_t(offset), in ValidateMapAsync() 465 DAWN_INVALID_IF(!(isReadMode ^ isWriteMode), "Map mode (%s) is not one of %s or %s.", mode, in ValidateMapAsync() 469 DAWN_INVALID_IF(!(mUsage & wgpu::BufferUsage::MapRead), in ValidateMapAsync() [all …]
|
D | ProgrammableEncoder.cpp | 52 DAWN_INVALID_IF(mDebugGroupStackSize != 0, in ValidateProgrammableEncoderEnd() 79 DAWN_INVALID_IF( in APIPopDebugGroup() 117 DAWN_INVALID_IF(index >= kMaxBindGroupsTyped, in ValidateSetBindGroup() 126 DAWN_INVALID_IF( in ValidateSetBindGroup() 155 DAWN_INVALID_IF(!IsAligned(dynamicOffsets[i], requiredAlignment), in ValidateSetBindGroup() 168 DAWN_INVALID_IF( in ValidateSetBindGroup()
|
D | Surface.cpp | 63 DAWN_INVALID_IF(descriptor->nextInChain == nullptr, in ValidateSurfaceDescriptor() 79 DAWN_INVALID_IF(!InheritsFromCAMetalLayer(metalDesc->layer), in ValidateSurfaceDescriptor() 90 DAWN_INVALID_IF(IsWindow(static_cast<HWND>(hwndDesc->hwnd)) == 0, "Invalid HWND"); in ValidateSurfaceDescriptor() 99 DAWN_INVALID_IF(coreWindowDesc->coreWindow == nullptr || in ValidateSurfaceDescriptor() 110 DAWN_INVALID_IF(swapChainPanelDesc->swapChainPanel == nullptr || in ValidateSurfaceDescriptor() 133 DAWN_INVALID_IF(status == 0, "Invalid X Window"); in ValidateSurfaceDescriptor()
|
D | Sampler.cpp | 26 DAWN_INVALID_IF(descriptor->nextInChain != nullptr, "nextInChain must be nullptr"); in ValidateSamplerDescriptor() 28 DAWN_INVALID_IF(std::isnan(descriptor->lodMinClamp) || std::isnan(descriptor->lodMaxClamp), in ValidateSamplerDescriptor() 32 DAWN_INVALID_IF(descriptor->lodMinClamp < 0 || descriptor->lodMaxClamp < 0, in ValidateSamplerDescriptor() 36 DAWN_INVALID_IF(descriptor->lodMinClamp > descriptor->lodMaxClamp, in ValidateSamplerDescriptor() 41 DAWN_INVALID_IF(descriptor->minFilter != wgpu::FilterMode::Linear || in ValidateSamplerDescriptor()
|
D | Pipeline.cpp | 34 DAWN_INVALID_IF(!module->HasEntryPoint(entryPoint), in ValidateProgrammableStage() 40 DAWN_INVALID_IF(metadata.stage != stage, in ValidateProgrammableStage() 60 DAWN_INVALID_IF(metadata.overridableConstants.count(constants[i].key) == 0, in ValidateProgrammableStage() 190 DAWN_INVALID_IF( in ValidateGetBindGroupLayout()
|
D | ComputePassEncoder.cpp | 172 DAWN_INVALID_IF( in APIDispatch() 177 DAWN_INVALID_IF( in APIDispatch() 182 DAWN_INVALID_IF( in APIDispatch() 303 DAWN_INVALID_IF(indirectOffset % 4 != 0, in APIDispatchIndirect() 306 DAWN_INVALID_IF( in APIDispatchIndirect()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | ShaderModuleGL.cpp | 83 DAWN_INVALID_IF( in ExtractSpirvInfo() 87 DAWN_INVALID_IF( in ExtractSpirvInfo() 96 DAWN_INVALID_IF(bindGroupIndex >= kMaxBindGroupsTyped, in ExtractSpirvInfo() 101 DAWN_INVALID_IF(!it.second, "Shader has duplicate bindings"); in ExtractSpirvInfo() 122 DAWN_INVALID_IF( in ExtractSpirvInfo() 128 DAWN_INVALID_IF(imageType.ms && imageType.arrayed, in ExtractSpirvInfo() 158 DAWN_INVALID_IF(!flags.get(spv::DecorationNonReadable), in ExtractSpirvInfo() 166 DAWN_INVALID_IF(storageTextureFormat == wgpu::TextureFormat::Undefined, in ExtractSpirvInfo() 170 DAWN_INVALID_IF(!format.supportsStorageUsage, in ExtractSpirvInfo() 174 DAWN_INVALID_IF(imageType.ms, in ExtractSpirvInfo() [all …]
|
D | DeviceGL.cpp | 184 DAWN_INVALID_IF(descriptor->dimension != wgpu::TextureDimension::e2D, in ValidateEGLImageCanBeWrapped() 188 DAWN_INVALID_IF(descriptor->mipLevelCount != 1, "Mip level count (%u) is not 1.", in ValidateEGLImageCanBeWrapped() 191 DAWN_INVALID_IF(descriptor->size.depthOrArrayLayers != 1, in ValidateEGLImageCanBeWrapped() 194 DAWN_INVALID_IF(descriptor->sampleCount != 1, "Sample count (%u) is not 1.", in ValidateEGLImageCanBeWrapped() 197 DAWN_INVALID_IF(descriptor->usage & (wgpu::TextureUsage::TextureBinding | in ValidateEGLImageCanBeWrapped()
|
/third_party/skia/third_party/externals/dawn/generator/templates/dawn_native/ |
D | ChainUtils.h | 39 DAWN_INVALID_IF(chain->sType != sType, 59 DAWN_INVALID_IF(chain->nextInChain != nullptr, 71 DAWN_INVALID_IF(chain->nextInChain != nullptr,
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/external_memory/ |
D | MemoryServiceDmaBuf.cpp | 157 DAWN_INVALID_IF(descriptor->type != ExternalImageType::DmaBuf, in GetMemoryImportParams() 180 DAWN_INVALID_IF(memoryTypeIndex == -1, in GetMemoryImportParams() 191 DAWN_INVALID_IF(handle < 0, "Importing memory with an invalid handle."); in ImportMemory() 221 DAWN_INVALID_IF(descriptor->type != ExternalImageType::DmaBuf, in CreateImage()
|
D | MemoryServiceOpaqueFD.cpp | 91 DAWN_INVALID_IF(descriptor->type != ExternalImageType::OpaqueFD, in GetMemoryImportParams() 105 DAWN_INVALID_IF(handle < 0, "Importing memory with an invalid handle."); in ImportMemory() 109 DAWN_INVALID_IF(requirements.size > importParams.allocationSize, in ImportMemory()
|