/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
H A D | QueueWriteTextureValidationTests.cpp | 598 uint32_t blockHeight = utils::GetTextureFormatBlockHeight(format); in TEST_F() local 604 {blockWidth, blockHeight, 1}); in TEST_F() 611 {blockWidth, blockHeight, 1}); in TEST_F() 625 uint32_t blockHeight = utils::GetTextureFormatBlockHeight(format); in TEST_F() local 628 uint32_t testHeight = kTestBytesPerRow * blockHeight / blockByteSize; in TEST_F() 635 {0, 0, 0}, {testWidth, blockHeight, 1})); in TEST_F() 641 {testWidth, blockHeight, 1}); in TEST_F() 647 {blockWidth, blockHeight, 1}); in TEST_F() 654 {blockWidth, blockHeight, 1}); in TEST_F() 664 uint32_t blockHeight in TEST_F() local 694 uint32_t blockHeight = utils::GetTextureFormatBlockHeight(format); TEST_F() local 734 uint32_t blockHeight = utils::GetTextureFormatBlockHeight(format); TEST_F() local 781 uint32_t blockHeight = utils::GetTextureFormatBlockHeight(format); TEST_F() local [all...] |
H A D | CopyCommandsValidationTests.cpp | 2114 uint32_t blockHeight = utils::GetTextureFormatBlockHeight(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() 2147 uint32_t blockHeight = utils::GetTextureFormatBlockHeight(format); in TEST_F() local 2150 uint32_t testHeight = kInvalidBytesPerRow * blockHeight / blockByteSize; in TEST_F() 2157 0, {0, 0, 0}, {testWidth, blockHeight, 1}); in TEST_F() 2163 texture, 0, {0, 0, 0}, {testWidth, blockHeight, 1}); in TEST_F() 2170 texture, 0, {0, 0, 0}, {testWidth, blockHeight, 1}); in TEST_F() 2183 uint32_t blockHeight = utils::GetTextureFormatBlockHeight(format); in TEST_F() local 2189 texture, 0, {0, 0, 0}, {blockWidth, blockHeight * in TEST_F() 2217 uint32_t blockHeight = utils::GetTextureFormatBlockHeight(format); TEST_F() local 2267 uint32_t blockHeight = utils::GetTextureFormatBlockHeight(format); TEST_F() local 2324 uint32_t blockHeight = utils::GetTextureFormatBlockHeight(format); TEST_F() local [all...] |
H A D | TextureValidationTests.cpp | 730 uint32_t blockHeight = utils::GetTextureFormatBlockHeight(format); in TEST_F() local 737 descriptor.size.height % blockHeight == 0); in TEST_F() 758 blockHeight % 2 == 0 ? blockHeight - (blockHeight / 2) : blockHeight - 1; in TEST_F() 769 descriptor.size.height = kHeightMultiplier * blockHeight; in TEST_F()
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/d3d12/ |
H A D | CopySplitTests.cpp | 39 uint32_t blockHeight = 1; member 69 uint32_t heightInBlocks = textureSpec.height / textureSpec.blockHeight; in ValidateFootprints() 85 ASSERT_EQ(copy.bufferOffset.y % textureSpec.blockHeight, 0u); in ValidateFootprints() 86 ASSERT_EQ(copy.copySize.height % textureSpec.blockHeight, 0u); in ValidateFootprints() 88 ASSERT_EQ(footprintHeight % textureSpec.blockHeight, 0u); in ValidateFootprints() 89 uint32_t footprintHeightInBlocks = footprintHeight / textureSpec.blockHeight; in ValidateFootprints() 195 uint32_t texelsPerBlock = textureSpec.blockWidth * textureSpec.blockHeight; in ValidateBufferOffset() 202 bytesPerRowInTexels * (bufferSpec.rowsPerImage / textureSpec.blockHeight); in ValidateBufferOffset() 206 copy.bufferOffset.y / textureSpec.blockHeight * bytesPerRowInTexels; in ValidateBufferOffset() 212 ASSERT_LE(copy.bufferOffset.y, textureSpec.blockHeight); in ValidateBufferOffset() [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/ |
H A D | d3d_format.cpp | 25 blockHeight(0), in D3DFormat() 38 GLuint blockHeight, in D3DFormat() 49 blockHeight(blockHeight), in D3DFormat() 36 D3DFormat(GLuint bits, GLuint blockWidth, GLuint blockHeight, GLuint redBits, GLuint greenBits, GLuint blueBits, GLuint alphaBits, GLuint lumBits, GLuint depthBits, GLuint stencilBits, FormatID formatID) D3DFormat() argument
|
H A D | d3d_format.h | 25 GLuint blockHeight, 39 GLuint blockHeight; member
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
H A D | formatutils11.h | 38 DXGIFormatSize(GLuint pixelBits, GLuint blockWidth, GLuint blockHeight); 42 GLuint blockHeight; member
|
H A D | MappedSubresourceVerifier11.cpp | 33 ASSERT(desc.Height % dxgiFormatInfo.blockHeight == 0); in getPitchCount() 34 return desc.Height / dxgiFormatInfo.blockHeight; in getPitchCount()
|
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
H A D | VkImage.cpp | 703 int blockHeight = usedFormat.blockHeight(); in imageExtentInBlocks() local 707 adjustedExtent.height = ((adjustedExtent.height + blockHeight - 1) / blockHeight); in imageExtentInBlocks() 720 int blockHeight = usedFormat.blockHeight(); in imageOffsetInBlocks() local 722 ASSERT(((offset.x % blockWidth) == 0) && ((offset.y % blockHeight) == 0)); // We can't offset within a block in imageOffsetInBlocks() 725 adjustedOffset.y /= blockHeight; in imageOffsetInBlocks() 754 int blockHeight = usedFormat.blockHeight(); in bufferExtentInBlocks() local [all...] |
H A D | VkFormat.hpp | 53 int blockHeight() const;
|
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuAstcUtil.cpp | 456 inline void setASTCErrorColorBlock (void* dst, int blockWidth, int blockHeight, bool isSRGB) 462 for (int i = 0; i < blockWidth*blockHeight; i++) 474 for (int i = 0; i < blockWidth*blockHeight; i++) 484 DecompressResult decodeVoidExtentBlock (void* dst, const Block128& blockData, int blockWidth, int blockHeight, bool isSRGB, bool isLDRMode) 495 setASTCErrorColorBlock(dst, blockWidth, blockHeight, isSRGB); 510 for (int i = 0; i < blockWidth*blockHeight; i++) 526 for (int i = 0; i < blockWidth*blockHeight; i++) 532 for (int i = 0; i < blockWidth*blockHeight; i++) 1270 void interpolateWeights (TexelWeightPair* dst, const deUint32 (&unquantizedWeights) [64], int blockWidth, int blockHeight, const ASTCBlockMode& blockMode) 1274 const deUint32 scaleY = (1024 + blockHeight/ [all...] |
H A D | tcuAstcUtil.hpp | 71 void generateDefaultNormalBlocks (deUint8* dst, size_t numBlocks, int blockWidth, int blockHeight);
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/ |
H A D | vktImageTestsUtil.cpp | 442 deUint32 blockHeight = getBlockHeight(format); in getCompressedImageResolutionInBlocks() local 445 DE_ASSERT(blockWidth != 0 && blockHeight != 0); in getCompressedImageResolutionInBlocks() 448 deUint32 heightInBlocks = (size[1] + blockHeight - 1) / blockHeight; in getCompressedImageResolutionInBlocks() 456 deUint32 blockHeight = getBlockHeight(format); in getCompressedImageResolutionBlockCeil() local 459 DE_ASSERT(blockWidth != 0 && blockHeight != 0); in getCompressedImageResolutionBlockCeil() 462 deUint32 heightInBlocks = (size[1] + blockHeight - 1) / blockHeight; in getCompressedImageResolutionBlockCeil() 464 return tcu::UVec3(blockWidth * widthInBlocks, blockHeight * heightInBlocks, 1); in getCompressedImageResolutionBlockCeil()
|
H A D | vktImageTransfer.cpp | 210 const deUint32 blockHeight = (isCompressed) ? getBlockHeight(m_params.imageFormat) : 1u; in iterate() local 211 deUint32 imageHeight = ((height + blockHeight - 1) / blockHeight) * blockHeight; in iterate()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/ |
H A D | vktImageTestsUtil.cpp | 442 deUint32 blockHeight = getBlockHeight(format); in getCompressedImageResolutionInBlocks() local 445 DE_ASSERT(blockWidth != 0 && blockHeight != 0); in getCompressedImageResolutionInBlocks() 448 deUint32 heightInBlocks = (size[1] + blockHeight - 1) / blockHeight; in getCompressedImageResolutionInBlocks() 456 deUint32 blockHeight = getBlockHeight(format); in getCompressedImageResolutionBlockCeil() local 459 DE_ASSERT(blockWidth != 0 && blockHeight != 0); in getCompressedImageResolutionBlockCeil() 462 deUint32 heightInBlocks = (size[1] + blockHeight - 1) / blockHeight; in getCompressedImageResolutionBlockCeil() 464 return tcu::UVec3(blockWidth * widthInBlocks, blockHeight * heightInBlocks, 1); in getCompressedImageResolutionBlockCeil()
|
H A D | vktImageTransfer.cpp | 204 const deUint32 blockHeight = (isCompressed) ? getBlockHeight(m_params.imageFormat) : 1u; in iterate() local 205 deUint32 imageHeight = ((height + blockHeight - 1) / blockHeight) * blockHeight; in iterate()
|
/third_party/skia/third_party/externals/dawn/src/utils/ |
H A D | TestUtils.cpp | 81 uint32_t blockHeight = utils::GetTextureFormatBlockHeight(textureFormat); in RequiredBytesInCopy() local 84 ASSERT(copyExtent.height % blockHeight == 0); in RequiredBytesInCopy() 85 uint32_t heightInBlocks = copyExtent.height / blockHeight; in RequiredBytesInCopy()
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
H A D | NonzeroTextureCreationTests.cpp | 222 uint32_t blockHeight = utils::GetTextureFormatBlockHeight(GetParam().mFormat); in Run() local 224 Align(mipSize, blockHeight), depthOrArrayLayers}; in Run() 228 uint32_t rowsPerImage = copySize.height / blockHeight; in Run() 252 for (uint32_t row = 0; row < copySize.height / blockHeight; ++row) { in Run()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/ |
H A D | renderer9_utils.cpp | 797 GLuint numBlocksHight = (height + d3dFormatInfo.blockHeight - 1) / d3dFormatInfo.blockHeight; in ComputeBlockSize() 810 // Don't expand the size of full textures that are at least (blockWidth x blockHeight) already. in MakeValidSize() 812 *requestHeight < static_cast<GLsizei>(d3dFormatInfo.blockHeight)) in MakeValidSize() 815 *requestHeight % d3dFormatInfo.blockHeight != 0) in MakeValidSize()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/ |
H A D | vktMeshShaderSmokeTests.cpp | 1054 const auto blockHeight = static_cast<int>(rateSize.height); in testFullscreenGradient() local 1059 for (int y = 0; y < imageDim.y() / blockHeight; ++y) in testFullscreenGradient() 1067 const auto cornerY = y * blockHeight; in testFullscreenGradient() 1071 for (int blockY = 0; blockY < blockHeight; ++blockY) in testFullscreenGradient() 1103 const auto blockAccess = tcu::getSubregion(errorAccess, cornerX, cornerY, blockWidth, blockHeight); in testFullscreenGradient()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/mesh_shader/ |
H A D | vktMeshShaderSmokeTests.cpp | 1054 const auto blockHeight = static_cast<int>(rateSize.height); in testFullscreenGradient() local 1059 for (int y = 0; y < imageDim.y() / blockHeight; ++y) in testFullscreenGradient() 1067 const auto cornerY = y * blockHeight; in testFullscreenGradient() 1071 for (int blockY = 0; blockY < blockHeight; ++blockY) in testFullscreenGradient() 1103 const auto blockAccess = tcu::getSubregion(errorAccess, cornerX, cornerY, blockWidth, blockHeight); in testFullscreenGradient()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ycbcr/ |
H A D | vktYCbCrStorageImageWriteTests.cpp | 216 const tcu::UVec3 compatibleShaderGridSize ( params.size.x() / formatDescription.blockWidth, params.size.y() / formatDescription.blockHeight, params.size.z() / 1u); 334 const tcu::UVec3 compatibleShaderGridSize ( params.size.x() / formatDescription.blockWidth, params.size.y() / formatDescription.blockHeight, params.size.z() / 1u ); 351 const tcu::UVec3 compatibleShaderGridSize ( params.size.x() / formatDescription.blockWidth, params.size.y() / formatDescription.blockHeight, params.size.z() / 1u ); 352 VkExtent3D compatibleImageSize { imageCreateInfo.extent.width / formatDescription.blockWidth, imageCreateInfo.extent.height / formatDescription.blockHeight, imageCreateInfo.extent.depth / 1u }; 610 VkExtent3D compatibleShaderGridSize { shaderGridSize.x() / formatDescription.blockWidth, shaderGridSize.y() / formatDescription.blockHeight, shaderGridSize.z() / 1u };
|
/third_party/mesa3d/src/amd/addrlib/src/gfx11/ |
H A D | gfx11addrlib.cpp | 2028 pOut->unalignedHeight = Min(requestMipHeight << pOut->mipId, infoOut.blockHeight); 2066 tiled && (requestMipWidth <= infoOut.blockWidth / 2) && (requestMipHeight <= infoOut.blockHeight) ? 2070 const UINT_32 hwMipHeight = PowTwoAlign(ShiftCeil(infoIn.height, pIn->mipId), infoOut.blockHeight); 2082 (hwMipHeight > PowTwoAlign(requestMipHeight, infoOut.blockHeight))))) ? TRUE : FALSE; 3047 &pOut->blockHeight, 3059 pOut->height = PowTwoAlign(pIn->height, pOut->blockHeight); 3076 const UINT_32 mipActualHeight = PowTwoAlign(mipHeight, pOut->blockHeight); 3132 &pOut->blockHeight, 3141 UINT_32 heightAlign = pOut->blockHeight; 3170 pOut->blockHeight, [all...] |
/third_party/mesa3d/src/amd/addrlib/src/gfx9/ |
H A D | gfx9addrlib.cpp | 4108 &pOut->blockHeight, 4156 pOut->height = PowTwoAlign(pIn->height, pOut->blockHeight); 4182 pOut->blockHeight, 4194 pOut->blockHeight, 4207 UINT_32 mip0HeightInBlk = pOut->height / pOut->blockHeight; 4236 pOut->mipChainHeight += (mip1HeightInBlk * pOut->blockHeight); 4257 pOut->blockHeight, 4266 (pOut->mipChainHeight / pOut->blockHeight) * pitchInBlock; 4392 pOut->blockHeight = 1; 4421 UINT_32 blockHeight, [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ycbcr/ |
H A D | vktYCbCrStorageImageWriteTests.cpp | 296 const tcu::UVec3 compatibleShaderGridSize ( params.size.x() / formatDescription.blockWidth, params.size.y() / formatDescription.blockHeight, params.size.z() / 1u); 421 const tcu::UVec3 compatibleShaderGridSize ( params.size.x() / formatDescription.blockWidth, params.size.y() / formatDescription.blockHeight, params.size.z() / 1u ); 438 const tcu::UVec3 compatibleShaderGridSize ( params.size.x() / formatDescription.blockWidth, params.size.y() / formatDescription.blockHeight, params.size.z() / 1u ); 439 VkExtent3D compatibleImageSize { imageCreateInfo.extent.width / formatDescription.blockWidth, imageCreateInfo.extent.height / formatDescription.blockHeight, imageCreateInfo.extent.depth / 1u }; 697 VkExtent3D compatibleShaderGridSize { shaderGridSize.x() / formatDescription.blockWidth, shaderGridSize.y() / formatDescription.blockHeight, shaderGridSize.z() / 1u };
|