Home
last modified time | relevance | path

Searched refs:depthOrArrayLayers (Results 1 – 25 of 71) sorted by relevance

123

/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DTextureCopySplitter.cpp145 copy.copies[0].bufferSize.depthOrArrayLayers = copySize.depthOrArrayLayers; in Compute2DTextureCopySubresource()
193 copy.copies[0].copySize.depthOrArrayLayers = copySize.depthOrArrayLayers; in Compute2DTextureCopySubresource()
198 copy.copies[0].bufferSize.depthOrArrayLayers = copySize.depthOrArrayLayers; in Compute2DTextureCopySubresource()
217 copy.copies[1].copySize.depthOrArrayLayers = copySize.depthOrArrayLayers; in Compute2DTextureCopySubresource()
222 copy.copies[1].bufferSize.depthOrArrayLayers = copySize.depthOrArrayLayers; in Compute2DTextureCopySubresource()
250 copyOneLayerSize.depthOrArrayLayers = 1; in Compute2DTextureCopySplits()
258 if (copySize.depthOrArrayLayers == 1) { in Compute2DTextureCopySplits()
390 copy1->copySize.depthOrArrayLayers--; in Recompute3DTextureCopyRegionWithEmptyFirstRowAndEvenCopyHeight()
391 copy1->bufferSize.depthOrArrayLayers--; in Recompute3DTextureCopyRegionWithEmptyFirstRowAndEvenCopyHeight()
398 rowsPerImage * (copySize.depthOrArrayLayers - 1)); in Recompute3DTextureCopyRegionWithEmptyFirstRowAndEvenCopyHeight()
[all …]
DUtilsD3D12.cpp98 bufferLocation.PlacedFootprint.Footprint.Depth = bufferSize.depthOrArrayLayers; in ComputeBufferLocationForCopyTextureRegion()
110 sourceRegion.back = offset.z + copySize.depthOrArrayLayers; in ComputeD3D12BoxFromOffsetAndSize()
205 for (uint32_t copyLayer = 0; copyLayer < copySize.depthOrArrayLayers; ++copyLayer) { in CopyBufferTo2DTextureWithCopySplit()
323 for (uint32_t copyLayer = 0; copyLayer < copySize.depthOrArrayLayers; ++copyLayer) { in Copy2DTextureToBufferWithCopySplit()
DCommandBufferD3D12.cpp87 copySize.depthOrArrayLayers == dstSize.depthOrArrayLayers && // in CanUseCopyResource()
88 copySize.depthOrArrayLayers == srcSize.depthOrArrayLayers; in CanUseCopyResource()
738 copy->copySize.depthOrArrayLayers == 0) { in RecordCommands()
773 copy->copySize.depthOrArrayLayers == 0) { in RecordCommands()
802 copy->copySize.depthOrArrayLayers == 0) { in RecordCommands()
829 copy->copySize.depthOrArrayLayers)); in RecordCommands()
873 for (uint32_t z = 0; z < copy->copySize.depthOrArrayLayers; ++z) { in RecordCommands()
DTextureD3D12.cpp445 DAWN_INVALID_IF(descriptor->size.depthOrArrayLayers != 1, in ValidateTextureDescriptorCanBeWrapped()
446 "Array layer count (%u) is not 1.", descriptor->size.depthOrArrayLayers); in ValidateTextureDescriptorCanBeWrapped()
460 (dawnDescriptor->size.depthOrArrayLayers != 1), in ValidateD3D12TextureCanBeWrapped()
464 dawnDescriptor->size.height, dawnDescriptor->size.depthOrArrayLayers); in ValidateD3D12TextureCanBeWrapped()
594 resourceDescriptor.DepthOrArraySize = size.depthOrArrayLayers; in InitializeAsInternalTexture()
1097 largestMipSize.depthOrArrayLayers; in ClearTexture()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/d3d12/
DCopySplitTests.cpp36 uint32_t depthOrArrayLayers; member
57 ASSERT_LE(copy.bufferOffset.z + copy.copySize.depthOrArrayLayers, in ValidateFootprints()
58 copy.bufferSize.depthOrArrayLayers); in ValidateFootprints()
67 if (textureSpec.depthOrArrayLayers <= 1 || dimension == wgpu::TextureDimension::e3D) { in ValidateFootprints()
74 textureSpec.depthOrArrayLayers, in ValidateFootprints()
95 copy.bufferSize.depthOrArrayLayers, in ValidateFootprints()
135 a.textureOffset.z, a.textureOffset.z + a.copySize.depthOrArrayLayers - 1, in ValidateDisjoint()
136 b.textureOffset.z, b.textureOffset.z + b.copySize.depthOrArrayLayers - 1); in ValidateDisjoint()
153 copySplit.copies[0].textureOffset.z + copySplit.copies[0].copySize.depthOrArrayLayers; in ValidateTextureBounds()
162 maxZ = std::max(maxZ, copy.textureOffset.z + copy.copySize.depthOrArrayLayers); in ValidateTextureBounds()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DCommandValidation.cpp123 if (copySize.depthOrArrayLayers == 0) { in ComputeRequiredBytesInCopy()
142 ASSERT(copySize.depthOrArrayLayers <= 1 || (bytesPerRow != wgpu::kCopyStrideUndefined && in ComputeRequiredBytesInCopy()
146 bytesPerImage > std::numeric_limits<uint64_t>::max() / copySize.depthOrArrayLayers, in ComputeRequiredBytesInCopy()
148 bytesPerImage, std::numeric_limits<uint64_t>::max() / copySize.depthOrArrayLayers, in ComputeRequiredBytesInCopy()
149 copySize.depthOrArrayLayers); in ComputeRequiredBytesInCopy()
151 uint64_t requiredBytesInCopy = bytesPerImage * (copySize.depthOrArrayLayers - 1); in ComputeRequiredBytesInCopy()
186 ASSERT(heightInBlocks <= 1 && copyExtent.depthOrArrayLayers <= 1); in ApplyDefaultTextureDataLayoutOptions()
190 ASSERT(copyExtent.depthOrArrayLayers <= 1); in ApplyDefaultTextureDataLayoutOptions()
205 copyExtent.depthOrArrayLayers > 1 && in ValidateLinearTextureData()
209 copyExtent.depthOrArrayLayers, layout.bytesPerRow, layout.rowsPerImage); in ValidateLinearTextureData()
[all …]
DTexture.cpp112 DAWN_INVALID_IF(descriptor->size.depthOrArrayLayers > 1, in ValidateSampleCount()
114 descriptor->size.depthOrArrayLayers); in ValidateSampleCount()
180 descriptor->size.depthOrArrayLayers != 0); in ValidateTextureSize()
198 descriptor->size.depthOrArrayLayers > maxExtent.depthOrArrayLayers, in ValidateTextureSize()
208 std::max(maxMippedDimension, descriptor->size.depthOrArrayLayers); in ValidateTextureSize()
293 descriptor->size.depthOrArrayLayers == 0 || in ValidateTextureDescriptor()
524 return mSize.depthOrArrayLayers; in GetDepth()
533 return mSize.depthOrArrayLayers; in GetArrayLayers()
630 extent.depthOrArrayLayers = std::max(mSize.depthOrArrayLayers >> level, 1u); in GetMipLevelVirtualSize()
664 return {clampedCopyExtentWidth, clampedCopyExtentHeight, extent.depthOrArrayLayers}; in ClampToMipLevelVirtualSize()
DCommandBuffer.cpp85 extent.depthOrArrayLayers == copySize.depthOrArrayLayers; in IsCompleteSubresourceCopiedTo()
96 copy.aspect, {copy.origin.z, copySize.depthOrArrayLayers}, {copy.mipLevel, 1}}; in GetSubresourcesAffectedByCopy()
192 const bool multiSlice = copy->copySize.depthOrArrayLayers > 1; in IsFullBufferOverwrittenInTextureToBufferCopy()
DCopyTextureForBrowserHelper.cpp260 DAWN_INVALID_IF(copySize->depthOrArrayLayers > 1, in ValidateCopyTextureForBrowser()
261 "Copy is for more than one array layer (%u)", copySize->depthOrArrayLayers); in ValidateCopyTextureForBrowser()
293 if (copySize->width == 0 || copySize->height == 0 || copySize->depthOrArrayLayers == 0) { in DoCopyTextureForBrowser()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DNonzeroTextureCreationTests.cpp140 descriptor.size.depthOrArrayLayers = GetParam().mDepthOrArrayLayers; in Run()
150 uint32_t depthOrArrayLayers = GetParam().mDimension == wgpu::TextureDimension::e3D in Run() local
161 {mipSize, mipSize, depthOrArrayLayers}, mip); in Run()
172 {mipSize, mipSize, depthOrArrayLayers}, mip); in Run()
184 {mipSize, mipSize, depthOrArrayLayers}, mip); in Run()
190 {mipSize, mipSize, depthOrArrayLayers}, mip); in Run()
205 uint32_t texelCount = mipSize * mipSize * depthOrArrayLayers; in Run()
208 {mipSize, mipSize, depthOrArrayLayers}, mip, in Run()
224 Align(mipSize, blockHeight), depthOrArrayLayers}; in Run()
251 for (uint32_t z = 0; z < depthOrArrayLayers; ++z) { in Run()
DCompressedTextureFormatTests.cpp90 copyBytesPerImage * copyConfig.copyExtent3D.depthOrArrayLayers; in UploadData()
95 for (uint32_t layer = 0; layer < copyConfig.copyExtent3D.depthOrArrayLayers; ++layer) { in UploadData()
249 noPaddingExtent3D.depthOrArrayLayers = 1u; in VerifyTexture()
255 layer < config.copyOrigin3D.z + config.copyExtent3D.depthOrArrayLayers; ++layer) { in VerifyTexture()
569 ASSERT(testRegion.depthOrArrayLayers == 1); in FillExpectedData()
586 uint32_t depthOrArrayLayers = 1) const { in GetTextureSizeWithNumBlocks() argument
588 depthOrArrayLayers}; in GetTextureSizeWithNumBlocks()
591 CopyConfig GetDefaultFullConfig(uint32_t depthOrArrayLayers = 1) const { in GetDefaultFullConfig() argument
598 kUnalignedBlockSize, kUnalignedBlockSize, depthOrArrayLayers); in GetDefaultFullConfig()
609 CopyConfig GetDefaultSmallConfig(uint32_t depthOrArrayLayers = 1) const { in GetDefaultSmallConfig() argument
[all …]
DCopyTextureForBrowserTests.cpp47 o << copySize.width << ", " << copySize.height << ", " << copySize.depthOrArrayLayers; in operator <<()
77 for (uint32_t layer = 0; layer < layout.mipSize.depthOrArrayLayers; ++layer) { in GetTextureData()
408 copySize.depthOrArrayLayers},
439 copySize.depthOrArrayLayers},
520 copySize.depthOrArrayLayers}, in DoColorConversionTest()
DCopyTests.cpp49 for (uint32_t layer = 0; layer < layout.mipSize.depthOrArrayLayers; ++layer) { in GetExpectedTextureData()
67 for (uint32_t layer = 0; layer < layout.mipSize.depthOrArrayLayers; ++layer) { in GetExpectedTextureDataRGBA8()
192 uint32_t copyLayer = copySize.depthOrArrayLayers; in DoTest()
196 copyDepth = copySize.depthOrArrayLayers; in DoTest()
226 << textureSpec.copyOrigin.z + copySize.depthOrArrayLayers << ")) from " in DoTest()
286 uint32_t copyLayer = copySize.depthOrArrayLayers; in DoTest()
290 copyDepth = copySize.depthOrArrayLayers; in DoTest()
401 ? srcSpec.textureSize.depthOrArrayLayers in DoTest()
402 : copySize.depthOrArrayLayers}, in DoTest()
439 ? dstSpec.textureSize.depthOrArrayLayers in DoTest()
[all …]
/third_party/skia/third_party/externals/dawn/src/utils/
DTestUtils.cpp47 textureSizeAtLevel0.depthOrArrayLayers}; in GetTextureDataCopyLayoutForTextureAtLevel()
50 layout.mipSize.depthOrArrayLayers = in GetTextureDataCopyLayoutForTextureAtLevel()
51 std::max(textureSizeAtLevel0.depthOrArrayLayers >> mipmapLevel, 1u); in GetTextureDataCopyLayoutForTextureAtLevel()
87 copyExtent.depthOrArrayLayers, blockSize); in RequiredBytesInCopy()
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
DUtilsMetal.mm65 // format.blockHeight) * copySize.depthOrArrayLayers. For example considering the pixel
91 bufferSize - bufferOffset < bytesPerImage * copyExtent.depthOrArrayLayers;
99 copyExtent.depthOrArrayLayers};
106 if (copyExtent.depthOrArrayLayers > 1) {
112 copyExtent.depthOrArrayLayers - 1};
117 currentOffset += (copyExtent.depthOrArrayLayers - 1) * bytesPerImage;
127 origin.z + copyExtent.depthOrArrayLayers - 1};
152 origin.z + copyExtent.depthOrArrayLayers - 1};
DTextureMTL.mm351 DAWN_INVALID_IF(descriptor->size.depthOrArrayLayers != 1,
352 "Array layer count (%u) is not 1.", descriptor->size.depthOrArrayLayers);
362 descriptor->size.depthOrArrayLayers != 1,
591 uint32_t numZSlices = GetMipLevelVirtualSize(level).depthOrArrayLayers;
656 uint64_t bufferSize = largestMipBytesPerImage * largestMipSize.depthOrArrayLayers;
692 virtualSize.depthOrArrayLayers)
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DTextureValidationTests.cpp48 descriptor.size.depthOrArrayLayers = kDefaultDepth; in CreateDefaultTextureDescriptor()
140 descriptor.size.depthOrArrayLayers = 2; in TEST_F()
248 descriptor.size.depthOrArrayLayers = 64; in TEST_F()
262 descriptor.size.depthOrArrayLayers = 64; in TEST_F()
305 descriptor.size.depthOrArrayLayers = supportedLimits.maxTextureArrayLayers + 1u; in TEST_F()
312 descriptor.size.depthOrArrayLayers = supportedLimits.maxTextureArrayLayers >> 1; in TEST_F()
319 descriptor.size.depthOrArrayLayers = supportedLimits.maxTextureArrayLayers; in TEST_F()
709 descriptor.size.depthOrArrayLayers = 6;
719 descriptor.size.depthOrArrayLayers = 4;
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DDeviceGL.cpp191 DAWN_INVALID_IF(descriptor->size.depthOrArrayLayers != 1, in ValidateEGLImageCanBeWrapped()
192 "Array layer count (%u) is not 1.", descriptor->size.depthOrArrayLayers); in ValidateEGLImageCanBeWrapped()
227 textureDescriptor->size.depthOrArrayLayers != 1) { in CreateTextureWrappingEGLImage()
DCommandBufferGL.cpp501 for (uint32_t layer = 0; layer < copySize.depthOrArrayLayers; ++layer) { in CopyTextureToTextureWithBlit()
640 copy->copySize.depthOrArrayLayers == 0) { in Execute()
679 copy->copySize.depthOrArrayLayers == 0) { in Execute()
764 for (uint32_t z = 0; z < copySize.depthOrArrayLayers; ++z) { in Execute()
791 copy->copySize.depthOrArrayLayers == 0) { in Execute()
821 copy->copySize.depthOrArrayLayers); in Execute()
1389 rowSize * (copySize.height / blockInfo.height) * copySize.depthOrArrayLayers; in DoTexSubImage()
1408 copySize.depthOrArrayLayers, format.internalFormat, in DoTexSubImage()
1432 for (; z < destination.origin.z + copySize.depthOrArrayLayers; ++z) { in DoTexSubImage()
1462 copySize.depthOrArrayLayers, format.format, format.type, data); in DoTexSubImage()
[all …]
DTextureGL.cpp33 if (descriptor->size.depthOrArrayLayers > 1) { in TargetForTexture()
366 mipSize.height, mipSize.depthOrArrayLayers, in ClearTexture()
425 GetMipLevelVirtualSize(level).depthOrArrayLayers; in ClearTexture()
464 largestMipSize.depthOrArrayLayers; in ClearTexture()
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DCommandBufferVk.cpp64 imageExtentSrc.depthOrArrayLayers == imageExtentDst.depthOrArrayLayers; in HasSameTextureCopyExtent()
87 region.srcSubresource.layerCount = copySize.depthOrArrayLayers; in ComputeImageCopyRegion()
106 region.dstSubresource.layerCount = copySize.depthOrArrayLayers; in ComputeImageCopyRegion()
124 region.extent.depth = has3DTextureInCopy ? copySize.depthOrArrayLayers : 1; in ComputeImageCopyRegion()
457 widthInBlocks * heightInBlocks * copySize.depthOrArrayLayers * blockInfo.byteSize; in RecordCopyImageWithTemporaryBuffer()
554 copy->copySize.depthOrArrayLayers == 0) { in RecordCommands()
597 copy->copySize.depthOrArrayLayers == 0) { in RecordCommands()
634 copy->copySize.depthOrArrayLayers == 0) { in RecordCommands()
660 copy->copySize.depthOrArrayLayers)); in RecordCommands()
DUtilsVulkan.cpp140 region.imageSubresource.layerCount = copySize.depthOrArrayLayers; in ComputeBufferImageCopyRegion()
160 region.imageExtent.depth = imageExtent.depthOrArrayLayers; in ComputeBufferImageCopyRegion()
/third_party/skia/src/gpu/dawn/
DGrDawnAttachment.cpp34 desc.size.depthOrArrayLayers = 1; in MakeStencil()
DGrDawnTexture.cpp39 textureDesc.size.depthOrArrayLayers = 1; in Make()
/third_party/skia/third_party/externals/dawn/src/tests/white_box/
DD3D12ResourceHeapTests.cpp57 descriptor.size.depthOrArrayLayers = 1; in TEST_P()

123