/third_party/skia/third_party/externals/dawn/src/utils/ |
H A D | TestUtils.cpp | 39 uint32_t rowsPerImage) { in GetTextureDataCopyLayoutForTextureAtLevel() 56 if (rowsPerImage == wgpu::kCopyStrideUndefined) { in GetTextureDataCopyLayoutForTextureAtLevel() 57 rowsPerImage = layout.mipSize.height; in GetTextureDataCopyLayoutForTextureAtLevel() 59 layout.rowsPerImage = rowsPerImage; in GetTextureDataCopyLayoutForTextureAtLevel() 61 uint32_t appliedRowsPerImage = rowsPerImage > 0 ? rowsPerImage : layout.mipSize.height; in GetTextureDataCopyLayoutForTextureAtLevel() 76 uint64_t rowsPerImage, in RequiredBytesInCopy() 86 return RequiredBytesInCopy(bytesPerRow, rowsPerImage, widthInBlocks, heightInBlocks, in RequiredBytesInCopy() 91 uint64_t rowsPerImage, in RequiredBytesInCopy() 34 GetTextureDataCopyLayoutForTextureAtLevel( wgpu::TextureFormat format, wgpu::Extent3D textureSizeAtLevel0, uint32_t mipmapLevel, wgpu::TextureDimension dimension, uint32_t rowsPerImage) GetTextureDataCopyLayoutForTextureAtLevel() argument 75 RequiredBytesInCopy(uint64_t bytesPerRow, uint64_t rowsPerImage, wgpu::Extent3D copyExtent, wgpu::TextureFormat textureFormat) RequiredBytesInCopy() argument 90 RequiredBytesInCopy(uint64_t bytesPerRow, uint64_t rowsPerImage, uint64_t widthInBlocks, uint64_t heightInBlocks, uint64_t depth, uint64_t bytesPerBlock) RequiredBytesInCopy() argument 110 GetTexelCountInCopyRegion(uint64_t bytesPerRow, uint64_t rowsPerImage, wgpu::Extent3D copyExtent, wgpu::TextureFormat textureFormat) GetTexelCountInCopyRegion() argument [all...] |
H A D | TestUtils.h | 26 uint32_t rowsPerImage; member 39 uint32_t rowsPerImage = wgpu::kCopyStrideUndefined); 42 uint64_t rowsPerImage, 46 uint64_t rowsPerImage, 53 uint64_t rowsPerImage,
|
H A D | WGPUHelpers.cpp | 184 uint32_t rowsPerImage) { in CreateImageCopyBuffer() 187 imageCopyBuffer.layout = CreateTextureDataLayout(offset, bytesPerRow, rowsPerImage); in CreateImageCopyBuffer() 207 uint32_t rowsPerImage) { in CreateTextureDataLayout() 211 textureDataLayout.rowsPerImage = rowsPerImage; in CreateTextureDataLayout() 181 CreateImageCopyBuffer(wgpu::Buffer buffer, uint64_t offset, uint32_t bytesPerRow, uint32_t rowsPerImage) CreateImageCopyBuffer() argument 205 CreateTextureDataLayout(uint64_t offset, uint32_t bytesPerRow, uint32_t rowsPerImage) CreateTextureDataLayout() argument
|
H A D | WGPUHelpers.h | 49 uint32_t rowsPerImage = wgpu::kCopyStrideUndefined); 58 uint32_t rowsPerImage = wgpu::kCopyStrideUndefined);
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
H A D | UtilsD3D12.cpp | 183 const uint32_t rowsPerImage, in CopyBufferTo2DTextureWithCopySplit() 191 textureCopy.origin, copySize, blockInfo, offset, bytesPerRow, rowsPerImage); in CopyBufferTo2DTextureWithCopySplit() 193 const uint64_t bytesPerLayer = bytesPerRow * rowsPerImage; in CopyBufferTo2DTextureWithCopySplit() 228 const uint32_t rowsPerImage, in CopyBufferTo3DTexture() 236 textureCopy.origin, copySize, blockInfo, offset, bytesPerRow, rowsPerImage); in CopyBufferTo3DTexture() 248 const uint32_t rowsPerImage, in RecordCopyBufferToTexture() 256 rowsPerImage, copySize, texture, aspect); in RecordCopyBufferToTexture() 261 bytesPerRow, rowsPerImage, copySize, texture, in RecordCopyBufferToTexture() 310 bufferCopy.bytesPerRow, bufferCopy.rowsPerImage); in Copy2DTextureToBufferWithCopySplit() 312 const uint64_t bytesPerLayer = bufferCopy.bytesPerRow * bufferCopy.rowsPerImage; in Copy2DTextureToBufferWithCopySplit() 178 CopyBufferTo2DTextureWithCopySplit(CommandRecordingContext* commandContext, const TextureCopy& textureCopy, ID3D12Resource* bufferResource, const uint64_t offset, const uint32_t bytesPerRow, const uint32_t rowsPerImage, const Extent3D& copySize, Texture* texture, Aspect aspect) CopyBufferTo2DTextureWithCopySplit() argument 223 CopyBufferTo3DTexture(CommandRecordingContext* commandContext, const TextureCopy& textureCopy, ID3D12Resource* bufferResource, const uint64_t offset, const uint32_t bytesPerRow, const uint32_t rowsPerImage, const Extent3D& copySize, Texture* texture, Aspect aspect) CopyBufferTo3DTexture() argument 243 RecordCopyBufferToTexture(CommandRecordingContext* commandContext, const TextureCopy& textureCopy, ID3D12Resource* bufferResource, const uint64_t offset, const uint32_t bytesPerRow, const uint32_t rowsPerImage, const Extent3D& copySize, Texture* texture, Aspect aspect) RecordCopyBufferToTexture() argument [all...] |
H A D | TextureCopySplitter.cpp | 232 uint32_t rowsPerImage) { 235 const uint64_t bytesPerLayer = bytesPerRow * rowsPerImage; 245 // layer. Moreover, if "rowsPerImage" is even, both the first and second copy layers can 281 uint32_t rowsPerImage, 338 // Solution: split the copy region to two copies: copy 3 (rowsPerImage - 1) rows in and 340 // equals to rowsPerImage. Then copy the last row in the second copy. However, the copy 377 copy0.bufferSize.height = rowsPerImage * blockInfo.height; // rowsPerImageInTexels 398 rowsPerImage * (copySize.depthOrArrayLayers - 1)); 460 uint32_t rowsPerImage) { 466 // For example, if bufferSize.height is greater than rowsPerImage i [all...] |
H A D | TextureCopySplitter.h | 87 uint32_t rowsPerImage); 94 uint32_t rowsPerImage);
|
H A D | UtilsD3D12.h | 62 const uint32_t rowsPerImage,
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
H A D | CommandValidation.cpp | 116 uint32_t rowsPerImage) { in ComputeRequiredBytesInCopy() 131 // heightInBlocks <= rowsPerImage in ComputeRequiredBytesInCopy() 137 // <= bytesPerRow * rowsPerImage in ComputeRequiredBytesInCopy() 143 rowsPerImage != wgpu::kCopyStrideUndefined)); in ComputeRequiredBytesInCopy() 144 uint64_t bytesPerImage = Safe32x32(bytesPerRow, rowsPerImage); in ComputeRequiredBytesInCopy() 189 if (layout->rowsPerImage == wgpu::kCopyStrideUndefined) { in ApplyDefaultTextureDataLayoutOptions() 191 layout->rowsPerImage = heightInBlocks; in ApplyDefaultTextureDataLayoutOptions() 207 layout.rowsPerImage == wgpu::kCopyStrideUndefined), in ValidateLinearTextureData() 208 "Copy depth (%u) is > 1, but bytesPerRow (%u) or rowsPerImage (%u) are not specified.", in ValidateLinearTextureData() 209 copyExtent.depthOrArrayLayers, layout.bytesPerRow, layout.rowsPerImage); in ValidateLinearTextureData() 113 ComputeRequiredBytesInCopy(const TexelBlockInfo& blockInfo, const Extent3D& copySize, uint32_t bytesPerRow, uint32_t rowsPerImage) ComputeRequiredBytesInCopy() argument [all...] |
H A D | Queue.cpp | 44 uint32_t rowsPerImage, in CopyTextureData() 55 for (uint32_t h = 0; h < rowsPerImage; ++h) { in CopyTextureData() 63 uint64_t layerSize = uint64_t(rowsPerImage) * actualBytesPerRow; in CopyTextureData() 118 uint32_t dataRowsPerImage = dataLayout.rowsPerImage; in UploadTextureDataAligningBytesPerRowAndOffset() 351 passDataLayout.rowsPerImage = alignedRowsPerImage; in WriteTextureImpl() 41 CopyTextureData(uint8_t* dstPointer, const uint8_t* srcPointer, uint32_t depth, uint32_t rowsPerImage, uint64_t imageAdditionalStride, uint32_t actualBytesPerRow, uint32_t dstBytesPerRow, uint32_t srcBytesPerRow) CopyTextureData() argument
|
H A D | CommandValidation.h | 42 uint32_t rowsPerImage);
|
H A D | CommandBuffer.cpp | 195 if (multiSlice && copy->destination.rowsPerImage > heightInBlocks) { in IsFullBufferOverwrittenInTextureToBufferCopy() 210 copy->destination.rowsPerImage) in IsFullBufferOverwrittenInTextureToBufferCopy()
|
/third_party/mesa3d/src/glx/ |
H A D | pixel.c | 177 GLint elementsPerRow, imageSize, rowsPerImage, h, i, j, k; in __glFillImage() local 193 rowsPerImage = imageHeight; in __glFillImage() 196 rowsPerImage = height; in __glFillImage() 209 imageSize = rowSize * rowsPerImage; in __glFillImage() 404 GLint imageSize, rowsPerImage; in __glEmptyImage() local 419 rowsPerImage = imageHeight; in __glEmptyImage() 422 rowsPerImage = height; in __glEmptyImage() 436 imageSize = sourceRowSize * rowsPerImage; in __glEmptyImage()
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/d3d12/ |
H A D | CopySplitTests.cpp | 45 uint32_t rowsPerImage; member 72 utils::RequiredBytesInCopy(bufferSpec.bytesPerRow, bufferSpec.rowsPerImage, in ValidateFootprints() 202 bytesPerRowInTexels * (bufferSpec.rowsPerImage / textureSpec.blockHeight); in ValidateBufferOffset() 254 << bufferSpec.rowsPerImage << ")"; in operator <<() 400 bufferSpec.offset, bufferSpec.bytesPerRow, bufferSpec.rowsPerImage); in DoTest() 517 uint32_t baseImageHeight = bufferSpec.rowsPerImage; in TEST_P() 519 bufferSpec.rowsPerImage = baseImageHeight + i * 256; in TEST_P()
|
/third_party/skia/bench/ |
H A D | ImageCycleBench.cpp | 66 int rowsPerImage = SkScalarCeilToInt((SkScalar)fRepeatCnt / imagesPerRow); variable 70 SkScalar imageYOffset = i * rowsPerImage * (kImageSize.fHeight + kPad);
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
H A D | UtilsVulkan.cpp | 110 passDataLayout.rowsPerImage = bufferCopy.rowsPerImage; in ComputeBufferImageCopyRegion() 128 region.bufferImageHeight = dataLayout.rowsPerImage * blockInfo.height; in ComputeBufferImageCopyRegion()
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
H A D | QueueTests.cpp | 195 // For MinimumDataSpec bytesPerRow and rowsPerImage, compute a default from the copy extent. 212 uint32_t rowsPerImage; 222 uint32_t rowsPerImage = writeSize.height; 224 rowsPerImage = overrideRowsPerImage; 228 utils::RequiredBytesInCopy(bytesPerRow, rowsPerImage, writeSize, kTextureFormat); 229 return {totalDataSize, 0, bytesPerRow, rowsPerImage}; 272 dataSpec.offset, dataSpec.bytesPerRow, dataSpec.rowsPerImage); 290 dataSpec.rowsPerImage > 0 ? dataSpec.rowsPerImage : mipSize.height; 486 // Test writing with rowsPerImage greate in TEST_P() 562 uint32_t rowsPerImage = 23; TEST_P() local 570 uint32_t rowsPerImage = 23; TEST_P() local [all...] |
H A D | CompressedTextureFormatTests.cpp | 33 uint32_t rowsPerImage = wgpu::kCopyStrideUndefined; member 84 uint32_t copyRowsPerImage = copyConfig.rowsPerImage; in UploadData() 123 copyConfig.bytesPerRowAlignment, copyConfig.rowsPerImage); in InitializeDataInCompressedTexture() 931 srcConfig.rowsPerImage = srcConfig.copyExtent3D.height / BlockHeightInTexels(); in TEST_P() 990 // slice pitch (slicePitch = bytesPerRow * (rowsPerImage / blockHeightInTexels)). On D3D12 1070 config.rowsPerImage = config.textureDescriptor.size.height * 2 / BlockHeightInTexels(); in TEST_P() 1092 config.rowsPerImage = kPhysicalSize.height * 2 / BlockHeightInTexels(); in TEST_P() 1111 config.rowsPerImage = 8; in TEST_P() 1131 config.rowsPerImage = 8; in TEST_P() 1223 copyConfig.bufferOffset, copyConfig.bytesPerRowAlignment, copyConfig.rowsPerImage); in WriteToCompressedTexture() [all...] |
H A D | NonzeroTextureCreationTests.cpp | 228 uint32_t rowsPerImage = copySize.height / blockHeight; in Run() local 230 uint64_t bufferSize = utils::RequiredBytesInCopy(bytesPerRow, rowsPerImage, in Run() 238 utils::CreateImageCopyBuffer(bufferDst, 0, bytesPerRow, rowsPerImage); in Run()
|
H A D | TextureZeroInitTests.cpp | 153 const uint32_t rowsPerImage = kSize; in TEST_P() local 156 bufferDescriptor.size = utils::RequiredBytesInCopy(bytesPerRow, rowsPerImage, in TEST_P() 1483 textureDataLayout.rowsPerImage = kSize; in TEST_P() 1486 utils::RequiredBytesInCopy(textureDataLayout.bytesPerRow, textureDataLayout.rowsPerImage, in TEST_P() 1518 textureDataLayout.rowsPerImage = kSize; in TEST_P() 1521 utils::RequiredBytesInCopy(textureDataLayout.bytesPerRow, textureDataLayout.rowsPerImage, in TEST_P() 1557 textureDataLayout.rowsPerImage = kSize; in TEST_P() 1560 utils::RequiredBytesInCopy(textureDataLayout.bytesPerRow, textureDataLayout.rowsPerImage, in TEST_P() 1600 textureDataLayout.rowsPerImage = kSize; in TEST_P() 1603 utils::RequiredBytesInCopy(textureDataLayout.bytesPerRow, textureDataLayout.rowsPerImage, in TEST_P() [all...] |
H A D | CopyTests.cpp | 24 // For MinimumBufferSpec bytesPerRow and rowsPerImage, compute a default from the copy extent. 43 uint32_t rowsPerImage; member 100 uint32_t rowsPerImage = copyExtent.height; in GetExpectedTextureData() local 102 rowsPerImage = overrideRowsPerImage; in GetExpectedTextureData() 106 utils::RequiredBytesInCopy(bytesPerRow, rowsPerImage, copyExtent, format); in GetExpectedTextureData() 107 return {totalDataSize, 0, bytesPerRow, rowsPerImage}; in GetExpectedTextureData() 163 utils::CreateTextureDataLayout(0, copyLayout.bytesPerRow, copyLayout.rowsPerImage); in GetExpectedTextureData() 183 buffer, bufferSpec.offset, bufferSpec.bytesPerRow, bufferSpec.rowsPerImage); in GetExpectedTextureData() 202 bufferSpec.bytesPerRow, bufferSpec.rowsPerImage, copySizePerLayer, textureSpec.format); in GetExpectedTextureData() 217 copyLayout.rowsPerImage, expecte in GetExpectedTextureData() [all...] |
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
H A D | QueueWriteTextureValidationTests.cpp | 64 textureDataLayout.rowsPerImage = dataRowsPerImage; in TestWriteTexture() 73 uint32_t rowsPerImage, in TestWriteTextureExactDataSize() 80 utils::RequiredBytesInCopy(bytesPerRow, rowsPerImage, extent3D, textureFormat); in TestWriteTextureExactDataSize() 81 TestWriteTexture(dataSize, 0, bytesPerRow, rowsPerImage, texture, 0, origin, extent3D); in TestWriteTextureExactDataSize() 85 ASSERT_DEVICE_ERROR(TestWriteTexture(invalidSize, 0, bytesPerRow, rowsPerImage, texture, in TestWriteTextureExactDataSize() 145 // An empty copy with height > 0, depth = 0, bytesPerRow > 0 and rowsPerImage > 0 in TEST_F() 291 // Test that if rowsPerImage is greater than 0, it must be at least copy height. 298 // rowsPerImage is wgpu::kCopyStrideUndefined in TEST_F() 302 // rowsPerImage is equal to copy height (Valid) in TEST_F() 305 // rowsPerImage i in TEST_F() 72 TestWriteTextureExactDataSize(uint32_t bytesPerRow, uint32_t rowsPerImage, wgpu::Texture texture, wgpu::TextureFormat textureFormat, wgpu::Origin3D origin, wgpu::Extent3D extent3D) TestWriteTextureExactDataSize() argument [all...] |
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/ |
H A D | CommandBufferMTL.h | 38 uint32_t rowsPerImage,
|
H A D | UtilsMetal.h | 65 uint32_t rowsPerImage,
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
H A D | CommandBufferGL.cpp | 668 dataLayout.rowsPerImage = src.rowsPerImage; in Execute() 763 const uint64_t bytesPerImage = dst.bytesPerRow * dst.rowsPerImage; in Execute() 1406 dataLayout.rowsPerImage * blockInfo.height); in DoTexSubImage() 1444 slice += dataLayout.rowsPerImage * dataLayout.bytesPerRow; in DoTexSubImage() 1460 dataLayout.rowsPerImage * blockInfo.height); in DoTexSubImage() 1484 slice += dataLayout.rowsPerImage * dataLayout.bytesPerRow; in DoTexSubImage()
|