Home
last modified time | relevance | path

Searched refs:Aspect (Results 1 – 25 of 47) sorted by relevance

12

/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DSubresourceStorageTests.cpp28 FakeStorage(Aspect aspects, in FakeStorage()
40 for (Aspect aspect : IterateEnumMask(range.aspects)) { in Update()
54 for (Aspect aspect : IterateEnumMask(mAspects)) { in Merge()
65 const T& Get(Aspect aspect, uint32_t arrayLayer, uint32_t mipLevel) const { in Get()
69 size_t GetDataIndex(Aspect aspect, uint32_t layer, uint32_t level) const { in GetDataIndex()
82 Aspect mAspects;
141 for (Aspect aspect : IterateEnumMask(range.aspects)) { in CheckSameAs()
160 void CheckAspectCompressed(const SubresourceStorage<T>& s, Aspect aspect, bool expected) { in CheckAspectCompressed()
189 Aspect aspect, in CheckLayerCompressed()
220 SubresourceStorage<int> s(Aspect::Color, 3, 5); in TEST()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DSubresource.cpp22 Aspect ConvertSingleAspect(const Format& format, wgpu::TextureAspect aspect) { in ConvertSingleAspect()
23 Aspect aspectMask = ConvertAspect(format, aspect); in ConvertSingleAspect()
28 Aspect ConvertAspect(const Format& format, wgpu::TextureAspect aspect) { in ConvertAspect()
29 Aspect aspectMask = SelectFormatAspects(format, aspect); in ConvertAspect()
30 ASSERT(aspectMask != Aspect::None); in ConvertAspect()
34 Aspect ConvertViewAspect(const Format& format, wgpu::TextureAspect aspect) { in ConvertViewAspect()
36 if (format.aspects == Aspect::Color) { in ConvertViewAspect()
39 return Aspect::Plane0; in ConvertViewAspect()
41 return Aspect::Plane1; in ConvertViewAspect()
49 Aspect SelectFormatAspects(const Format& format, wgpu::TextureAspect aspect) { in SelectFormatAspects()
[all …]
DSubresource.h26 enum class Aspect : uint8_t { enum
42 struct EnumBitmaskSize<Aspect> {
49 Aspect ConvertSingleAspect(const Format& format, wgpu::TextureAspect aspect);
53 Aspect ConvertAspect(const Format& format, wgpu::TextureAspect aspect);
58 Aspect SelectFormatAspects(const Format& format, wgpu::TextureAspect aspect);
62 Aspect ConvertViewAspect(const Format& format, wgpu::TextureAspect aspect);
72 SubresourceRange(Aspect aspects,
77 Aspect aspects;
85 Aspect aspects);
86 static SubresourceRange MakeSingle(Aspect aspect,
[all …]
DFormat.cpp88 return aspects == Aspect::Color; in IsColor()
92 return (aspects & Aspect::Depth) != 0; in HasDepth()
96 return (aspects & Aspect::Stencil) != 0; in HasStencil()
100 return (aspects & (Aspect::Depth | Aspect::Stencil)) != 0; in HasDepthOrStencil()
104 return (aspects & (Aspect::Plane0 | Aspect::Plane1)) != 0; in IsMultiPlanar()
111 const AspectInfo& Format::GetAspectInfo(Aspect aspect) const { in GetAspectInfo()
169 internalFormat.aspects = Aspect::Color; in BuildFormatTable()
207 internalFormat.aspects = Aspect::Depth; in BuildFormatTable()
226 internalFormat.aspects = Aspect::Stencil; in BuildFormatTable()
247 internalFormat.aspects = Aspect::Color; in BuildFormatTable()
[all …]
DSubresourceStorage.h114 SubresourceStorage(Aspect aspects,
121 const T& Get(Aspect aspect, uint32_t arrayLayer, uint32_t mipLevel) const;
172 Aspect GetAspectsForTesting() const;
175 bool IsAspectCompressedForTesting(Aspect aspect) const;
176 bool IsLayerCompressedForTesting(Aspect aspect, uint32_t layer) const;
188 SubresourceRange GetFullLayerRange(Aspect aspect, uint32_t layer) const;
202 Aspect mAspects;
222 SubresourceStorage<T>::SubresourceStorage(Aspect aspects, in SubresourceStorage()
246 for (Aspect aspect : IterateEnumMask(range.aspects)) { in Update()
305 for (Aspect aspect : IterateEnumMask(mAspects)) { in Merge()
[all …]
DFormat.h45 enum class Aspect : uint8_t;
93 Aspect aspects;
107 const AspectInfo& GetAspectInfo(Aspect aspect) const;
DCommandValidation.cpp276 SelectFormatAspects(texture->GetFormat(), textureCopy.aspect) == Aspect::None, in ValidateImageCopyTexture()
357 ResultOrError<Aspect> SingleAspectUsedByImageCopyTexture(const ImageCopyTexture& view) { in SingleAspectUsedByImageCopyTexture()
367 Aspect single = format.aspects; in SingleAspectUsedByImageCopyTexture()
371 ASSERT(format.aspects & Aspect::Depth); in SingleAspectUsedByImageCopyTexture()
372 return Aspect::Depth; in SingleAspectUsedByImageCopyTexture()
374 ASSERT(format.aspects & Aspect::Stencil); in SingleAspectUsedByImageCopyTexture()
375 return Aspect::Stencil; in SingleAspectUsedByImageCopyTexture()
384 Aspect aspectUsed; in ValidateLinearToDepthStencilCopyRestrictions()
386 DAWN_INVALID_IF(aspectUsed == Aspect::Depth, "Cannot copy into the depth aspect of %s.", in ValidateLinearToDepthStencilCopyRestrictions()
DCommandEncoder.cpp86 Aspect aspectUsed; in ValidateTextureDepthStencilToBufferCopyRestrictions()
88 if (aspectUsed == Aspect::Depth) { in ValidateTextureDepthStencilToBufferCopyRestrictions()
225 DAWN_INVALID_IF(!(attachment->GetAspects() & Aspect::Color) || in ValidateRenderPassColorAttachment()
285 attachment->GetAspects() == (Aspect::Depth | Aspect::Stencil) && in ValidateRenderPassDepthStencilAttachment()
457 Aspect aspects = depthStencilAttachment->view->GetAspects(); in IsReadOnlyDepthStencilAttachment()
458 DAWN_ASSERT(IsSubset(aspects, Aspect::Depth | Aspect::Stencil)); in IsReadOnlyDepthStencilAttachment()
460 if ((aspects & Aspect::Depth) && !depthStencilAttachment->depthReadOnly) { in IsReadOnlyDepthStencilAttachment()
463 if (aspects & Aspect::Stencil && !depthStencilAttachment->stencilReadOnly) { in IsReadOnlyDepthStencilAttachment()
DTexture.cpp307 (format->aspects & (Aspect::Depth | Aspect::Stencil)) != 0, in ValidateTextureDescriptor()
349 SelectFormatAspects(texture->GetFormat(), descriptor->aspect) == Aspect::None, in ValidateTextureViewDescriptor()
567 Aspect aspect) const { in GetSubresourceIndex()
575 for (Aspect aspect : IterateEnumMask(range.aspects)) { in IsSubresourceContentInitialized()
594 for (Aspect aspect : IterateEnumMask(range.aspects)) { in SetIsSubresourceContentInitialized()
737 Aspect TextureViewBase::GetAspects() const { in GetAspects()
DTexture.h75 uint32_t GetSubresourceIndex(uint32_t mipLevel, uint32_t arraySlice, Aspect aspect) const;
131 Aspect GetAspects() const;
DCommandBuffer.cpp152 depthRange.aspects = range.aspects & Aspect::Depth; in LazyClearRenderPassAttachments()
155 stencilRange.aspects = range.aspects & Aspect::Stencil; in LazyClearRenderPassAttachments()
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DTextureGL.cpp227 if ((range.aspects & (Aspect::Depth | Aspect::Stencil)) != 0) { in ClearTexture()
230 if (range.aspects & Aspect::Depth) { in ClearTexture()
233 if (range.aspects & Aspect::Stencil) { in ClearTexture()
237 auto DoClear = [&](Aspect aspects) { in ClearTexture()
238 if (aspects == (Aspect::Depth | Aspect::Stencil)) { in ClearTexture()
240 } else if (aspects == Aspect::Depth) { in ClearTexture()
242 } else if (aspects == Aspect::Stencil) { in ClearTexture()
254 if (range.aspects == (Aspect::Depth | Aspect::Stencil)) { in ClearTexture()
256 } else if (range.aspects == Aspect::Depth) { in ClearTexture()
258 } else if (range.aspects == Aspect::Stencil) { in ClearTexture()
[all …]
DCommandBufferGL.cpp311 Aspect aspect = view->GetAspects(); in ApplyBindGroup()
314 case Aspect::None: in ApplyBindGroup()
315 case Aspect::Color: in ApplyBindGroup()
316 case Aspect::CombinedDepthStencil: in ApplyBindGroup()
317 case Aspect::Plane0: in ApplyBindGroup()
318 case Aspect::Plane1: in ApplyBindGroup()
320 case Aspect::Depth: in ApplyBindGroup()
324 case Aspect::Stencil: in ApplyBindGroup()
491 if (src.aspect & Aspect::Color) { in CopyTextureToTextureWithBlit()
494 if (src.aspect & Aspect::Depth) { in CopyTextureToTextureWithBlit()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DLegalizerInfo.cpp381 LegalizerInfo::getAspectAction(const InstrAspect &Aspect) const { in getAspectAction()
385 if (Aspect.Type.isScalar() || Aspect.Type.isPointer()) in getAspectAction()
386 return findScalarLegalAction(Aspect); in getAspectAction()
387 assert(Aspect.Type.isVector()); in getAspectAction()
388 return findVectorLegalAction(Aspect); in getAspectAction()
621 LegalizerInfo::findScalarLegalAction(const InstrAspect &Aspect) const { in findScalarLegalAction()
622 assert(Aspect.Type.isScalar() || Aspect.Type.isPointer()); in findScalarLegalAction()
623 if (Aspect.Opcode < FirstOp || Aspect.Opcode > LastOp) in findScalarLegalAction()
625 const unsigned OpcodeIdx = getOpcodeIdxForOpcode(Aspect.Opcode); in findScalarLegalAction()
626 if (Aspect.Type.isPointer() && in findScalarLegalAction()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DUtilsD3D12.h34 Aspect aspect);
42 Aspect aspect);
55 Aspect aspect);
65 Aspect aspect);
75 Aspect aspect);
DUtilsD3D12.cpp74 Aspect aspect) { in ComputeTextureCopyLocationForTexture()
89 Aspect aspect) { in ComputeBufferLocationForCopyTextureRegion()
155 Aspect aspect) { in RecordCopyBufferToTextureFromTextureCopySplit()
186 Aspect aspect) { in CopyBufferTo2DTextureWithCopySplit()
231 Aspect aspect) { in CopyBufferTo3DTexture()
251 Aspect aspect) { in RecordCopyBufferToTexture()
274 Aspect aspect) { in RecordCopyTextureToBufferFromTextureCopySplit()
DTextureD3D12.cpp698 DXGI_FORMAT Texture::GetD3D12CopyableSubresourceFormat(Aspect aspect) const { in GetD3D12CopyableSubresourceFormat()
704 case Aspect::Depth: in GetD3D12CopyableSubresourceFormat()
706 case Aspect::Stencil: in GetD3D12CopyableSubresourceFormat()
747 for (Aspect aspect : IterateEnumMask(range.aspects)) { in TrackUsageAndTransitionNow()
836 for (Aspect aspect : IterateEnumMask(range.aspects)) { in TransitionSubresourceRange()
961 Aspect aspects, in GetDSVDescriptor()
967 if (depthReadOnly && aspects & Aspect::Depth) { in GetDSVDescriptor()
970 if (stencilReadOnly && aspects & Aspect::Stencil) { in GetDSVDescriptor()
1009 for (Aspect aspect : IterateEnumMask(range.aspects)) { in ClearTexture()
1018 case Aspect::Depth: in ClearTexture()
[all …]
DRenderPassBuilderD3D12.cpp66 switch (resolveDestination->GetFormat().GetAspectInfo(Aspect::Color).baseType) { in D3D12EndingAccessResolveParameters()
88 ASSERT(resolveDestinationTexture->GetFormat().aspects == Aspect::Color); in D3D12EndingAccessResolveSubresourceParameters()
95 Aspect::Color); in D3D12EndingAccessResolveSubresourceParameters()
DTextureD3D12.h58 DXGI_FORMAT GetD3D12CopyableSubresourceFormat(Aspect aspect) const;
66 Aspect aspects,
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DUtilsVulkan.cpp55 VkImageAspectFlags VulkanAspectMask(const Aspect& aspects) { in VulkanAspectMask()
57 for (Aspect aspect : IterateEnumMask(aspects)) { in VulkanAspectMask()
59 case Aspect::Color: in VulkanAspectMask()
62 case Aspect::Depth: in VulkanAspectMask()
65 case Aspect::Stencil: in VulkanAspectMask()
69 case Aspect::CombinedDepthStencil: in VulkanAspectMask()
73 case Aspect::Plane0: in VulkanAspectMask()
74 case Aspect::Plane1: in VulkanAspectMask()
75 case Aspect::None: in VulkanAspectMask()
DTextureVk.cpp772 wgpu::TextureUsage usage = mSubresourceLastUsages.Get(Aspect::Color, 0, 0); in ExportExternalTexture()
876 ASSERT(GetFormat().aspects & Aspect::Depth); in GetVkAspectMask()
877 return VulkanAspectMask(Aspect::Depth); in GetVkAspectMask()
879 ASSERT(GetFormat().aspects & Aspect::Stencil); in GetVkAspectMask()
880 return VulkanAspectMask(Aspect::Stencil); in GetVkAspectMask()
976 return GetFormat().aspects == (Aspect::Depth | Aspect::Stencil); in ShouldCombineDepthStencilBarriers()
979 Aspect Texture::ComputeAspectsForSubresourceStorage() const { in ComputeAspectsForSubresourceStorage()
981 return Aspect::CombinedDepthStencil; in ComputeAspectsForSubresourceStorage()
997 Aspect::CombinedDepthStencil, GetArrayLayers(), GetNumMipLevels()); in TransitionUsageForPass()
1000 updateRange.aspects = Aspect::CombinedDepthStencil; in TransitionUsageForPass()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
DUtilsMetal.h66 Aspect aspect);
73 MTLBlitOption ComputeMTLBlitOption(const Format& format, Aspect aspect);
DUtilsMetal.mm56 Aspect aspect) {
172 MTLBlitOption ComputeMTLBlitOption(const Format& format, Aspect aspect) {
176 if (IsSubset(Aspect::Depth | Aspect::Stencil, format.aspects)) {
180 case Aspect::Depth:
182 case Aspect::Stencil:
DTextureMTL.mm52 if (IsSubset(Aspect::Depth | Aspect::Stencil, format.aspects)) {
100 if (IsSubset(Aspect::Depth | Aspect::Stencil, texture->GetFormat().aspects) &&
545 for (Aspect aspect : IterateEnumMask(range.aspects)) {
555 case Aspect::Depth:
563 case Aspect::Stencil:
597 level, arrayLayer, Aspect::Color))) {
642 for (Aspect aspect : IterateEnumMask(range.aspects)) {
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DLegalizerInfo.h969 void setAction(const InstrAspect &Aspect, LegalizeAction Action) { in setAction() argument
972 const unsigned OpcodeIdx = Aspect.Opcode - FirstOp; in setAction()
973 if (SpecifiedActions[OpcodeIdx].size() <= Aspect.Idx) in setAction()
974 SpecifiedActions[OpcodeIdx].resize(Aspect.Idx + 1); in setAction()
975 SpecifiedActions[OpcodeIdx][Aspect.Idx][Aspect.Type] = Action; in setAction()
1175 getAspectAction(const InstrAspect &Aspect) const;
1326 findScalarLegalAction(const InstrAspect &Aspect) const;
1330 findVectorLegalAction(const InstrAspect &Aspect) const;

12