/third_party/skia/third_party/externals/dawn/src/utils/ |
D | TestUtils.cpp | 39 uint32_t rowsPerImage) { in GetTextureDataCopyLayoutForTextureAtLevel() argument 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() argument 86 return RequiredBytesInCopy(bytesPerRow, rowsPerImage, widthInBlocks, heightInBlocks, in RequiredBytesInCopy() 91 uint64_t rowsPerImage, in RequiredBytesInCopy() argument 100 uint64_t bytesPerImage = bytesPerRow * rowsPerImage; in RequiredBytesInCopy() 111 uint64_t rowsPerImage, in GetTexelCountInCopyRegion() argument [all …]
|
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,
|
D | WGPUHelpers.cpp | 184 uint32_t rowsPerImage) { in CreateImageCopyBuffer() argument 187 imageCopyBuffer.layout = CreateTextureDataLayout(offset, bytesPerRow, rowsPerImage); in CreateImageCopyBuffer() 207 uint32_t rowsPerImage) { in CreateTextureDataLayout() argument 211 textureDataLayout.rowsPerImage = rowsPerImage; in CreateTextureDataLayout()
|
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/ |
D | UtilsD3D12.cpp | 183 const uint32_t rowsPerImage, in CopyBufferTo2DTextureWithCopySplit() argument 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() argument 236 textureCopy.origin, copySize, blockInfo, offset, bytesPerRow, rowsPerImage); in CopyBufferTo3DTexture() 248 const uint32_t rowsPerImage, in RecordCopyBufferToTexture() argument 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() [all …]
|
D | TextureCopySplitter.cpp | 232 uint32_t rowsPerImage) { in Compute2DTextureCopySplits() argument 235 const uint64_t bytesPerLayer = bytesPerRow * rowsPerImage; in Compute2DTextureCopySplits() 281 uint32_t rowsPerImage, in Recompute3DTextureCopyRegionWithEmptyFirstRowAndEvenCopyHeight() argument 377 copy0.bufferSize.height = rowsPerImage * blockInfo.height; // rowsPerImageInTexels in Recompute3DTextureCopyRegionWithEmptyFirstRowAndEvenCopyHeight() 398 rowsPerImage * (copySize.depthOrArrayLayers - 1)); in Recompute3DTextureCopyRegionWithEmptyFirstRowAndEvenCopyHeight() 460 uint32_t rowsPerImage) { in Compute3DTextureCopySplits() argument 485 uint32_t rowsPerImageInTexels = rowsPerImage * blockInfo.height; in Compute3DTextureCopySplits() 523 origin, copySize, blockInfo, bytesPerRow, rowsPerImage, copySubresource, i); in Compute3DTextureCopySplits()
|
D | TextureCopySplitter.h | 87 uint32_t rowsPerImage); 94 uint32_t rowsPerImage);
|
D | UtilsD3D12.h | 62 const uint32_t rowsPerImage,
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | CommandValidation.cpp | 116 uint32_t rowsPerImage) { in ComputeRequiredBytesInCopy() argument 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() 209 copyExtent.depthOrArrayLayers, layout.bytesPerRow, layout.rowsPerImage); in ValidateLinearTextureData() 229 DAWN_INVALID_IF(layout.rowsPerImage != wgpu::kCopyStrideUndefined && in ValidateLinearTextureData() 230 heightInBlocks > layout.rowsPerImage, in ValidateLinearTextureData() 232 heightInBlocks, layout.rowsPerImage); in ValidateLinearTextureData() [all …]
|
D | Queue.cpp | 44 uint32_t rowsPerImage, in CopyTextureData() argument 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()
|
D | CommandBuffer.cpp | 195 if (multiSlice && copy->destination.rowsPerImage > heightInBlocks) { in IsFullBufferOverwrittenInTextureToBufferCopy() 210 copy->destination.rowsPerImage) in IsFullBufferOverwrittenInTextureToBufferCopy()
|
D | CommandValidation.h | 42 uint32_t rowsPerImage);
|
/third_party/mesa3d/src/glx/ |
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/end2end/ |
D | QueueTests.cpp | 212 uint32_t rowsPerImage; member 222 uint32_t rowsPerImage = writeSize.height; in MinimumDataSpec() local 224 rowsPerImage = overrideRowsPerImage; in MinimumDataSpec() 228 utils::RequiredBytesInCopy(bytesPerRow, rowsPerImage, writeSize, kTextureFormat); in MinimumDataSpec() 229 return {totalDataSize, 0, bytesPerRow, rowsPerImage}; in MinimumDataSpec() 272 dataSpec.offset, dataSpec.bytesPerRow, dataSpec.rowsPerImage); in DoTest() 290 dataSpec.rowsPerImage > 0 ? dataSpec.rowsPerImage : mipSize.height; in DoTest() 562 uint32_t rowsPerImage = 23; in TEST_P() local 563 DoTest(textureSpec, MinimumDataSpec(copyExtent, bytesPerRow, rowsPerImage), copyExtent); in TEST_P() 570 uint32_t rowsPerImage = 23; in TEST_P() local [all …]
|
D | CopyTests.cpp | 43 uint32_t rowsPerImage; member 100 uint32_t rowsPerImage = copyExtent.height; in MinimumBufferSpec() local 102 rowsPerImage = overrideRowsPerImage; in MinimumBufferSpec() 106 utils::RequiredBytesInCopy(bytesPerRow, rowsPerImage, copyExtent, format); in MinimumBufferSpec() 107 return {totalDataSize, 0, bytesPerRow, rowsPerImage}; in MinimumBufferSpec() 163 utils::CreateTextureDataLayout(0, copyLayout.bytesPerRow, copyLayout.rowsPerImage); in DoTest() 183 buffer, bufferSpec.offset, bufferSpec.bytesPerRow, bufferSpec.rowsPerImage); in DoTest() 202 bufferSpec.bytesPerRow, bufferSpec.rowsPerImage, copySizePerLayer, textureSpec.format); in DoTest() 217 copyLayout.rowsPerImage, expected.data(), bufferSpec.bytesPerRow, in DoTest() 218 bufferSpec.rowsPerImage); in DoTest() [all …]
|
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() 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() 1265 config.rowsPerImage = 5; in TEST_P() [all …]
|
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()
|
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 …]
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/d3d12/ |
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/ |
D | ImageCycleBench.cpp | 66 int rowsPerImage = SkScalarCeilToInt((SkScalar)fRepeatCnt / imagesPerRow); in onDraw() local 70 SkScalar imageYOffset = i * rowsPerImage * (kImageSize.fHeight + kPad); in onDraw()
|
/third_party/flutter/skia/bench/ |
D | ImageCycleBench.cpp | 65 int rowsPerImage = SkScalarCeilToInt((SkScalar)fRepeatCnt / imagesPerRow); in onDraw() local 69 SkScalar imageYOffset = i * rowsPerImage * (kImageSize.fHeight + kPad); in onDraw()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
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/dawn_native/metal/ |
D | CommandBufferMTL.h | 38 uint32_t rowsPerImage,
|
D | UtilsMetal.h | 65 uint32_t rowsPerImage,
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
D | QueueWriteTextureValidationTests.cpp | 64 textureDataLayout.rowsPerImage = dataRowsPerImage; in TestWriteTexture() 73 uint32_t rowsPerImage, in TestWriteTextureExactDataSize() argument 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()
|