Home
last modified time | relevance | path

Searched refs:copyExtent (Results 1 – 15 of 15) sorted by relevance

/third_party/skia/third_party/externals/dawn/src/utils/
DTestUtils.cpp77 wgpu::Extent3D copyExtent, in RequiredBytesInCopy() argument
82 ASSERT(copyExtent.width % blockWidth == 0); in RequiredBytesInCopy()
83 uint32_t widthInBlocks = copyExtent.width / blockWidth; in RequiredBytesInCopy()
84 ASSERT(copyExtent.height % blockHeight == 0); in RequiredBytesInCopy()
85 uint32_t heightInBlocks = copyExtent.height / blockHeight; in RequiredBytesInCopy()
87 copyExtent.depthOrArrayLayers, blockSize); in RequiredBytesInCopy()
112 wgpu::Extent3D copyExtent, in GetTexelCountInCopyRegion() argument
114 return RequiredBytesInCopy(bytesPerRow, rowsPerImage, copyExtent, textureFormat) / in GetTexelCountInCopyRegion()
131 wgpu::Extent3D copyExtent = {1, 1, 1}; in UnalignDynamicUploader() local
135 &copyExtent); in UnalignDynamicUploader()
DTestUtils.h43 wgpu::Extent3D copyExtent,
54 wgpu::Extent3D copyExtent,
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DQueueTests.cpp339 wgpu::Extent3D copyExtent = {width, height, 1}; in DoSimpleWriteTextureTest() local
341 &textureDataLayout, &copyExtent); in DoSimpleWriteTextureTest()
515 constexpr wgpu::Extent3D copyExtent = {17, 19, 1}; in TEST_P() local
519 copyExtent.width * utils::GetTexelBlockSizeInBytes(kTextureFormat) + b; in TEST_P()
520 DoTest(textureSpec, MinimumDataSpec(copyExtent, bytesPerRow), copyExtent); in TEST_P()
536 constexpr wgpu::Extent3D copyExtent = {5, 1, 1}; in TEST_P() local
537 DataSpec dataSpec = MinimumDataSpec(copyExtent); in TEST_P()
541 DoTest(textureSpec, dataSpec, copyExtent); in TEST_P()
556 constexpr wgpu::Extent3D copyExtent = {17, 19, 21}; in TEST_P() local
561 (copyExtent.width + b) * utils::GetTexelBlockSizeInBytes(kTextureFormat); in TEST_P()
[all …]
DCopyTests.cpp92 static BufferSpec MinimumBufferSpec(wgpu::Extent3D copyExtent, in MinimumBufferSpec() argument
96 uint32_t bytesPerRow = utils::GetMinimumBytesPerRow(format, copyExtent.width); in MinimumBufferSpec()
100 uint32_t rowsPerImage = copyExtent.height; in MinimumBufferSpec()
106 utils::RequiredBytesInCopy(bytesPerRow, rowsPerImage, copyExtent, format); in MinimumBufferSpec()
905 for (const wgpu::Extent3D copyExtent : in TEST_P()
907 DoTest(textureSpec, MinimumBufferSpec(copyExtent, 0, 2), copyExtent); in TEST_P()
911 for (const wgpu::Extent3D copyExtent : in TEST_P()
913 DoTest(textureSpec, MinimumBufferSpec(copyExtent, wgpu::kCopyStrideUndefined, 2), in TEST_P()
914 copyExtent); in TEST_P()
918 for (const wgpu::Extent3D copyExtent : in TEST_P()
[all …]
DStorageTextureTests.cpp528 const wgpu::Extent3D copyExtent = {kWidth, kHeight, sliceCount}; in CreateTextureWithTestData() local
533 encoder.CopyBufferToTexture(&imageCopyBuffer, &imageCopyTexture, &copyExtent); in CreateTextureWithTestData()
714 const wgpu::Extent3D copyExtent = {kWidth, kHeight, sliceCount}; in CheckOutputStorageTexture() local
719 encoder.CopyTextureToBuffer(&imageCopyTexture, &imageCopyBuffer, &copyExtent); in CheckOutputStorageTexture()
DCompressedTextureFormatTests.cpp1192 wgpu::Extent3D copyExtent = {4, 4, 1}; in TEST_P() local
1195 encoder.CopyTextureToBuffer(&imageCopyTexture, &imageCopyBuffer, &copyExtent); in TEST_P()
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
DUtilsMetal.mm51 Extent3D copyExtent,
85 texture->ClampToMipLevelVirtualSize(mipLevel, origin, copyExtent);
91 bufferSize - bufferOffset < bytesPerImage * copyExtent.depthOrArrayLayers;
98 copy.copies[0].copyExtent = {clampedCopyExtent.width, clampedCopyExtent.height,
99 copyExtent.depthOrArrayLayers};
106 if (copyExtent.depthOrArrayLayers > 1) {
111 copy.copies[copy.count].copyExtent = {clampedCopyExtent.width, clampedCopyExtent.height,
112 copyExtent.depthOrArrayLayers - 1};
117 currentOffset += (copyExtent.depthOrArrayLayers - 1) * bytesPerImage;
121 uint32_t copyBlockRowCount = copyExtent.height / blockInfo.height;
[all …]
DUtilsMetal.h43 Extent3D copyExtent; member
61 Extent3D copyExtent,
DCommandBufferMTL.mm620 const MTLSize copyExtent =
621 MTLSizeMake(copyInfo.copyExtent.width, copyInfo.copyExtent.height, 1);
624 z < copyInfo.textureOrigin.z + copyInfo.copyExtent.depthOrArrayLayers;
630 sourceSize:copyExtent
646 sourceSize:MTLSizeMake(copyInfo.copyExtent.width,
647 copyInfo.copyExtent.height,
648 copyInfo.copyExtent.depthOrArrayLayers)
803 const MTLSize copyExtent = MTLSizeMake(
804 copyInfo.copyExtent.width, copyInfo.copyExtent.height, 1);
808 copyInfo.copyExtent.depthOrArrayLayers;
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DCommandValidation.cpp176 const Extent3D& copyExtent) { in ApplyDefaultTextureDataLayoutOptions() argument
178 ASSERT(copyExtent.height % blockInfo.height == 0); in ApplyDefaultTextureDataLayoutOptions()
179 uint32_t heightInBlocks = copyExtent.height / blockInfo.height; in ApplyDefaultTextureDataLayoutOptions()
182 ASSERT(copyExtent.width % blockInfo.width == 0); in ApplyDefaultTextureDataLayoutOptions()
183 uint32_t widthInBlocks = copyExtent.width / blockInfo.width; in ApplyDefaultTextureDataLayoutOptions()
186 ASSERT(heightInBlocks <= 1 && copyExtent.depthOrArrayLayers <= 1); in ApplyDefaultTextureDataLayoutOptions()
190 ASSERT(copyExtent.depthOrArrayLayers <= 1); in ApplyDefaultTextureDataLayoutOptions()
198 const Extent3D& copyExtent) { in ValidateLinearTextureData() argument
199 ASSERT(copyExtent.height % blockInfo.height == 0); in ValidateLinearTextureData()
200 uint32_t heightInBlocks = copyExtent.height / blockInfo.height; in ValidateLinearTextureData()
[all …]
DCommandValidation.h46 const Extent3D& copyExtent);
50 const Extent3D& copyExtent);
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
DVkImage.cpp415 VkExtent3D copyExtent = imageExtentInBlocks(region.extent, srcAspect); in copySingleAspectTo() local
439 uint32_t layerCount = one3D ? copyExtent.depth : region.srcSubresource.layerCount; in copySingleAspectTo()
445 uint32_t sliceCount = both3D ? copyExtent.depth : samples; in copySingleAspectTo()
448 bool isSingleRow = (copyExtent.height == 1) && isSingleSlice; in copySingleAspectTo()
467 (copyExtent.height == srcExtent.height) && in copySingleAspectTo()
468 (copyExtent.height == dstExtent.height) && in copySingleAspectTo()
478 size_t copySize = copyExtent.width * bytesPerBlock; in copySingleAspectTo()
485 size_t copySize = copyExtent.height * srcRowPitch; in copySingleAspectTo()
499 size_t sliceSize = copyExtent.height * srcRowPitch; in copySingleAspectTo()
516 size_t rowSize = copyExtent.width * bytesPerBlock; in copySingleAspectTo()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrCopyTests.cpp498 const UVec2 copyExtent (copyBlockExtent * srcBlockExtent); in genCopies() local
527 copyExtent.x(), in genCopies()
528 copyExtent.y(), in genCopies()
/third_party/skia/third_party/externals/dawn/src/tests/
DDawnTest.cpp1310 wgpu::Extent3D copyExtent = {width, height, 1}; in ExpectAttachmentDepthStencilTestData() local
1313 sizeof(float) * expectedDepth.size(), &textureDataLayout, &copyExtent); in ExpectAttachmentDepthStencilTestData()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
DvktApiCopiesAndBlittingTests.cpp720 const VkExtent3D copyExtent = in uploadImageAspect() local
730 deUint32 rowLength = ((copyExtent.width + blockWidth-1) / blockWidth) * blockWidth; in uploadImageAspect()
731 deUint32 imageHeight = ((copyExtent.height + blockHeight-1) / blockHeight) * blockHeight; in uploadImageAspect()
745 copyExtent // VkExtent3D imageExtent; in uploadImageAspect()
4518 const VkExtent3D copyExtent in uploadCompressedImage() local
4528 copyExtent.width, // deUint32 bufferRowLength; in uploadCompressedImage()
4529 copyExtent.height, // deUint32 bufferImageHeight; in uploadCompressedImage()
4537 copyExtent // VkExtent3D imageExtent; in uploadCompressedImage()