/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
D | QueueWriteTextureValidationTests.cpp | 597 uint32_t blockWidth = utils::GetTextureFormatBlockWidth(format); in TEST_F() local 604 {blockWidth, blockHeight, 1}); in TEST_F() 611 {blockWidth, blockHeight, 1}); in TEST_F() 624 uint32_t blockWidth = utils::GetTextureFormatBlockWidth(format); in TEST_F() local 627 uint32_t testWidth = kTestBytesPerRow * blockWidth / blockByteSize; in TEST_F() 647 {blockWidth, blockHeight, 1}); in TEST_F() 654 {blockWidth, blockHeight, 1}); in TEST_F() 663 uint32_t blockWidth = utils::GetTextureFormatBlockWidth(format); in TEST_F() local 670 {blockWidth, blockHeight * 4, 1}); in TEST_F() 675 {blockWidth, blockHeight * 4, 1}); in TEST_F() [all …]
|
D | CopyCommandsValidationTests.cpp | 2113 uint32_t blockWidth = utils::GetTextureFormatBlockWidth(format); in TEST_F() local 2120 texture, 0, {0, 0, 0}, {blockWidth, blockHeight, 1}); in TEST_F() 2127 texture, 0, {0, 0, 0}, {blockWidth, blockHeight, 1}); in TEST_F() 2146 uint32_t blockWidth = utils::GetTextureFormatBlockWidth(format); in TEST_F() local 2149 uint32_t testWidth = kInvalidBytesPerRow * blockWidth / blockByteSize; in TEST_F() 2182 uint32_t blockWidth = utils::GetTextureFormatBlockWidth(format); in TEST_F() local 2189 texture, 0, {0, 0, 0}, {blockWidth, blockHeight * 4, 1}); in TEST_F() 2194 texture, 0, {0, 0, 0}, {blockWidth, blockHeight * 4, 1}); in TEST_F() 2201 texture, 0, {0, 0, 0}, {blockWidth, blockHeight * 5, 1}); in TEST_F() 2216 uint32_t blockWidth = utils::GetTextureFormatBlockWidth(format); in TEST_F() local [all …]
|
D | TextureValidationTests.cpp | 729 uint32_t blockWidth = utils::GetTextureFormatBlockWidth(format); in TEST_F() local 736 ASSERT_TRUE(descriptor.size.width % blockWidth == 0 && in TEST_F() 747 blockWidth % 2 == 0 ? blockWidth - (blockWidth / 2) : blockWidth - 1; in TEST_F() 768 descriptor.size.width = kWidthMultiplier * blockWidth; in TEST_F()
|
/third_party/skia/third_party/externals/dawn/src/utils/ |
D | TestUtils.cpp | 29 const uint32_t blockWidth = utils::GetTextureFormatBlockWidth(format); in GetMinimumBytesPerRow() local 30 ASSERT(width % blockWidth == 0); in GetMinimumBytesPerRow() 31 return Align(bytesPerBlock * (width / blockWidth), kTextureBytesPerRowAlignment); in GetMinimumBytesPerRow() 80 uint32_t blockWidth = utils::GetTextureFormatBlockWidth(textureFormat); in RequiredBytesInCopy() local 82 ASSERT(copyExtent.width % blockWidth == 0); in RequiredBytesInCopy() 83 uint32_t widthInBlocks = copyExtent.width / blockWidth; in RequiredBytesInCopy()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/ |
D | d3d_format.cpp | 24 blockWidth(0), in D3DFormat() 37 GLuint blockWidth, in D3DFormat() argument 48 blockWidth(blockWidth), in D3DFormat()
|
D | d3d_format.h | 24 GLuint blockWidth, 38 GLuint blockWidth; member
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/d3d12/ |
D | CopySplitTests.cpp | 38 uint32_t blockWidth = 1; member 68 uint32_t widthInBlocks = textureSpec.width / textureSpec.blockWidth; in ValidateFootprints() 79 ASSERT_EQ(copy.bufferOffset.x % textureSpec.blockWidth, 0u); in ValidateFootprints() 80 ASSERT_EQ(copy.copySize.width % textureSpec.blockWidth, 0u); in ValidateFootprints() 82 ASSERT_EQ(footprintWidth % textureSpec.blockWidth, 0u); in ValidateFootprints() 83 uint32_t footprintWidthInBlocks = footprintWidth / textureSpec.blockWidth; in ValidateFootprints() 195 uint32_t texelsPerBlock = textureSpec.blockWidth * textureSpec.blockHeight; in ValidateBufferOffset() 205 copy.bufferOffset.x / textureSpec.blockWidth * texelsPerBlock + in ValidateBufferOffset() 379 ASSERT(textureSpec.width % textureSpec.blockWidth == 0 && in DoTest() 389 {textureSpec.texelBlockSizeInBytes, textureSpec.blockWidth, in DoTest() [all …]
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | TextureCopySplitter.cpp | 33 return {byteOffsetX / format.blockByteSize * format.blockWidth, in ComputeTexelOffsets() 76 uint32_t copyBytesPerRowPitch = copySize.width / format.blockWidth * format.blockByteSize; in ComputeTextureCopySplit() 77 uint32_t byteOffsetInRowPitch = texelOffset.x / format.blockWidth * format.blockByteSize; in ComputeTextureCopySplit() 155 uint32_t texelsPerRow = rowPitch / format.blockByteSize * format.blockWidth; in ComputeTextureCopySplit()
|
/third_party/vk-gl-cts/framework/common/ |
D | tcuAstcUtil.cpp | 456 inline void setASTCErrorColorBlock (void* dst, int blockWidth, int blockHeight, bool isSRGB) in setASTCErrorColorBlock() argument 462 for (int i = 0; i < blockWidth*blockHeight; i++) in setASTCErrorColorBlock() 474 for (int i = 0; i < blockWidth*blockHeight; i++) in setASTCErrorColorBlock() 484 DecompressResult decodeVoidExtentBlock (void* dst, const Block128& blockData, int blockWidth, int b… in decodeVoidExtentBlock() argument 495 setASTCErrorColorBlock(dst, blockWidth, blockHeight, isSRGB); in decodeVoidExtentBlock() 510 for (int i = 0; i < blockWidth*blockHeight; i++) in decodeVoidExtentBlock() 526 for (int i = 0; i < blockWidth*blockHeight; i++) in decodeVoidExtentBlock() 532 for (int i = 0; i < blockWidth*blockHeight; i++) in decodeVoidExtentBlock() 1270 … (TexelWeightPair* dst, const deUint32 (&unquantizedWeights) [64], int blockWidth, int blockHeight… in interpolateWeights() argument 1273 const deUint32 scaleX = (1024 + blockWidth/2) / (blockWidth-1); in interpolateWeights() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
D | formatutils11.h | 38 DXGIFormatSize(GLuint pixelBits, GLuint blockWidth, GLuint blockHeight); 41 GLuint blockWidth; member
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
D | formatutils11.h | 37 DXGIFormatSize(GLuint pixelBits, GLuint blockWidth, GLuint blockHeight); 40 GLuint blockWidth; member
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/ |
D | formatutils9.h | 35 GLuint blockWidth, 49 GLuint blockWidth; member
|
D | renderer9_utils.cpp | 777 GLuint numBlocksWide = (width + d3dFormatInfo.blockWidth - 1) / d3dFormatInfo.blockWidth; in ComputeBlockSize() 792 if (isImage || *requestWidth < static_cast<GLsizei>(d3dFormatInfo.blockWidth) || in MakeValidSize() 795 while (*requestWidth % d3dFormatInfo.blockWidth != 0 || in MakeValidSize()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/ |
D | vktImageTestsUtil.cpp | 478 deUint32 blockWidth = getBlockWidth(format); in getCompressedImageResolutionInBlocks() local 482 DE_ASSERT(blockWidth != 0 && blockHeight != 0); in getCompressedImageResolutionInBlocks() 484 deUint32 widthInBlocks = (size[0] + blockWidth - 1) / blockWidth; in getCompressedImageResolutionInBlocks() 492 deUint32 blockWidth = getBlockWidth(format); in getCompressedImageResolutionBlockCeil() local 496 DE_ASSERT(blockWidth != 0 && blockHeight != 0); in getCompressedImageResolutionBlockCeil() 498 deUint32 widthInBlocks = (size[0] + blockWidth - 1) / blockWidth; in getCompressedImageResolutionBlockCeil() 501 return tcu::UVec3(blockWidth * widthInBlocks, blockHeight * heightInBlocks, 1); in getCompressedImageResolutionBlockCeil()
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/ |
D | Texture.cpp | 174 if (format->isCompressed && (descriptor->size.width % format->blockWidth != 0 || in ValidateTextureSize() 426 uint32_t blockWidth = mFormat.blockWidth; in GetMipLevelPhysicalSize() local 428 extent.width = (extent.width + blockWidth - 1) / blockWidth * blockWidth; in GetMipLevelPhysicalSize()
|
D | Format.cpp | 76 internalFormat.blockWidth = 1; in BuildFormatTable() 90 internalFormat.blockWidth = 1; in BuildFormatTable() 104 internalFormat.blockWidth = width; in BuildFormatTable()
|
D | Format.h | 49 uint32_t blockWidth; member
|
D | CommandEncoder.cpp | 206 uint32_t blockWidth = textureFormat.blockWidth; in ComputeTextureCopyBufferSize() local 210 uint32_t slicePitch = rowPitch * imageHeight / blockWidth; in ComputeTextureCopyBufferSize() 212 (copySize.width / blockWidth) * blockByteSize; in ComputeTextureCopyBufferSize() 219 return width / format.blockWidth * format.blockByteSize; in ComputeDefaultRowPitch() 229 if (rowPitch < copySize.width / format.blockWidth * format.blockByteSize) { in ValidateRowPitch() 238 if (offset.x % format.blockWidth != 0) { in ValidateImageOrigin() 252 if (extent.width % format.blockWidth != 0) { in ValidateImageCopySize()
|
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
D | VkImage.cpp | 461 ((srcRowPitch * dstFormat.blockWidth()) == in copySingleAspectTo() 462 (dstRowPitch * srcFormat.blockWidth())); in copySingleAspectTo() 702 int blockWidth = usedFormat.blockWidth(); in imageExtentInBlocks() local 706 adjustedExtent.width = ((adjustedExtent.width + blockWidth - 1) / blockWidth); in imageExtentInBlocks() 719 int blockWidth = usedFormat.blockWidth(); in imageOffsetInBlocks() local 722 …ASSERT(((offset.x % blockWidth) == 0) && ((offset.y % blockHeight) == 0)); // We can't offset wit… in imageOffsetInBlocks() 724 adjustedOffset.x /= blockWidth; in imageOffsetInBlocks() 742 int blockWidth = usedFormat.blockWidth(); in bufferExtentInBlocks() local 743 …ASSERT((adjustedExtent.width % blockWidth == 0) || (adjustedExtent.width + region.imageOffset.x ==… in bufferExtentInBlocks() 744 adjustedExtent.width = (region.bufferRowLength + blockWidth - 1) / blockWidth; in bufferExtentInBlocks() [all …]
|
/third_party/mesa3d/src/mesa/drivers/dri/radeon/ |
D | radeon_mipmap_tree.c | 47 unsigned blockWidth, blockHeight; in get_aligned_compressed_row_stride() local 50 _mesa_get_format_block_size(format, &blockWidth, &blockHeight); in get_aligned_compressed_row_stride() 55 stride = (width + blockWidth - 1) / blockWidth * blockBytes; in get_aligned_compressed_row_stride() 67 blockBytes, blockWidth, in get_aligned_compressed_row_stride() 81 unsigned blockWidth, blockHeight; in get_texture_image_size() local 83 _mesa_get_format_block_size(format, &blockWidth, &blockHeight); in get_texture_image_size()
|
/third_party/mesa3d/src/mesa/drivers/dri/r200/ |
D | radeon_mipmap_tree.c | 47 unsigned blockWidth, blockHeight; in get_aligned_compressed_row_stride() local 50 _mesa_get_format_block_size(format, &blockWidth, &blockHeight); in get_aligned_compressed_row_stride() 55 stride = (width + blockWidth - 1) / blockWidth * blockBytes; in get_aligned_compressed_row_stride() 67 blockBytes, blockWidth, in get_aligned_compressed_row_stride() 81 unsigned blockWidth, blockHeight; in get_texture_image_size() local 83 _mesa_get_format_block_size(format, &blockWidth, &blockHeight); in get_texture_image_size()
|
/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/d3d12/ |
D | CopySplitTests.cpp | 36 uint32_t blockWidth = 1; member 122 uint32_t texelsPerBlock = textureSpec.blockWidth * textureSpec.blockHeight; in ValidateBufferOffset() 132 copy.bufferOffset.x / textureSpec.blockWidth * texelsPerBlock + in ValidateBufferOffset() 274 ASSERT(textureSpec.width % textureSpec.blockWidth == 0 && in DoTest() 277 fakeFormat.blockWidth = textureSpec.blockWidth; in DoTest() 307 if (val % textureSpec.blockWidth != 0) { in TEST_F()
|
/third_party/flutter/skia/third_party/externals/angle2/src/image_util/ |
D | loadimage.inc | 115 template <size_t blockWidth, size_t blockHeight, size_t blockDepth, size_t blockSize> 120 const size_t columns = (width + (blockWidth - 1)) / blockWidth;
|
/third_party/skia/third_party/externals/angle2/src/image_util/ |
D | loadimage.inc | 113 template <size_t blockWidth, size_t blockHeight, size_t blockDepth, size_t blockSize> 118 const size_t columns = (width + (blockWidth - 1)) / blockWidth;
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ycbcr/ |
D | vktYCbCrStorageImageWriteTests.cpp | 245 …const tcu::UVec3 compatibleShaderGridSize ( params.size.x() / formatDescription.blockWidth, par… in testStorageImageWrite() 303 …const deUint32 planeW = imageCreateInfo.extent.width / (formatDescription.blockWidth * formatDesc… in testStorageImageWrite() 364 …const tcu::UVec3 compatibleShaderGridSize ( params.size.x() / formatDescription.blockWidth, para… in testStorageImageWrite() 381 …const tcu::UVec3 compatibleShaderGridSize ( params.size.x() / formatDescription.blockWidth, pa… in testStorageImageWrite() 382 …mpatibleImageSize { imageCreateInfo.extent.width / formatDescription.blockWidth, imageCreateInfo… in testStorageImageWrite() 639 …VkExtent3D compatibleShaderGridSize { shaderGridSize.x() / formatDescription.blockWidth, shad… in initPrograms()
|