/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
H A 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() 616 // Tests to verify that bytesPerRow must not be less than (width / blockWidth) * 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, blockHeigh in TEST_F() 693 uint32_t blockWidth = utils::GetTextureFormatBlockWidth(format); TEST_F() local 733 uint32_t blockWidth = utils::GetTextureFormatBlockWidth(format); TEST_F() local 780 uint32_t blockWidth = utils::GetTextureFormatBlockWidth(format); TEST_F() local [all...] |
H A 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() 2132 // Tests to verify that bytesPerRow must not be less than (width / blockWidth) * blockSizeInBytes. 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, blockHeigh in TEST_F() 2216 uint32_t blockWidth = utils::GetTextureFormatBlockWidth(format); TEST_F() local 2266 uint32_t blockWidth = utils::GetTextureFormatBlockWidth(format); TEST_F() local 2323 uint32_t blockWidth = utils::GetTextureFormatBlockWidth(format); TEST_F() local [all...] |
H A 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/ |
H A 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/dawn/src/tests/unittests/d3d12/ |
H A 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/skia/third_party/externals/angle2/src/libANGLE/renderer/ |
H A D | d3d_format.cpp | 24 blockWidth(0), in D3DFormat() 37 GLuint blockWidth, in D3DFormat() 48 blockWidth(blockWidth), 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 | 24 GLuint blockWidth, 38 GLuint blockWidth; member
|
/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) 1273 const deUint32 scaleX = (1024 + blockWidth/ [all...] |
H A D | tcuAstcUtil.hpp | 71 void generateDefaultNormalBlocks (deUint8* dst, size_t numBlocks, int blockWidth, int blockHeight);
|
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
H A D | VkImage.cpp | 454 // For non-compressed formats, blockWidth is 1. For compressed in copySingleAspectTo() 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) in imageOffsetInBlocks() 742 int blockWidth = usedFormat.blockWidth(); bufferExtentInBlocks() local [all...] |
H A D | VkFormat.hpp | 52 int blockWidth() const;
|
/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); 41 GLuint blockWidth; member
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/ |
H A D | vktImageTestsUtil.cpp | 441 deUint32 blockWidth = getBlockWidth(format); in getCompressedImageResolutionInBlocks() local 445 DE_ASSERT(blockWidth != 0 && blockHeight != 0); in getCompressedImageResolutionInBlocks() 447 deUint32 widthInBlocks = (size[0] + blockWidth - 1) / blockWidth; in getCompressedImageResolutionInBlocks() 455 deUint32 blockWidth = getBlockWidth(format); in getCompressedImageResolutionBlockCeil() local 459 DE_ASSERT(blockWidth != 0 && blockHeight != 0); in getCompressedImageResolutionBlockCeil() 461 deUint32 widthInBlocks = (size[0] + blockWidth - 1) / blockWidth; in getCompressedImageResolutionBlockCeil() 464 return tcu::UVec3(blockWidth * widthInBlocks, blockHeight * heightInBlocks, 1); in getCompressedImageResolutionBlockCeil()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/ |
H A D | vktImageTestsUtil.cpp | 441 deUint32 blockWidth = getBlockWidth(format); in getCompressedImageResolutionInBlocks() local 445 DE_ASSERT(blockWidth != 0 && blockHeight != 0); in getCompressedImageResolutionInBlocks() 447 deUint32 widthInBlocks = (size[0] + blockWidth - 1) / blockWidth; in getCompressedImageResolutionInBlocks() 455 deUint32 blockWidth = getBlockWidth(format); in getCompressedImageResolutionBlockCeil() local 459 DE_ASSERT(blockWidth != 0 && blockHeight != 0); in getCompressedImageResolutionBlockCeil() 461 deUint32 widthInBlocks = (size[0] + blockWidth - 1) / blockWidth; in getCompressedImageResolutionBlockCeil() 464 return tcu::UVec3(blockWidth * widthInBlocks, blockHeight * heightInBlocks, 1); in getCompressedImageResolutionBlockCeil()
|
/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); 274 const deUint32 planeW = imageCreateInfo.extent.width / (formatDescription.blockWidth * formatDescription.planes[planeNdx].widthDivisor); 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/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/ |
H A D | renderer9_utils.cpp | 796 GLuint numBlocksWide = (width + d3dFormatInfo.blockWidth - 1) / d3dFormatInfo.blockWidth; in ComputeBlockSize() 810 // Don't expand the size of full textures that are at least (blockWidth x blockHeight) already. in MakeValidSize() 811 if (isImage || *requestWidth < static_cast<GLsizei>(d3dFormatInfo.blockWidth) || in MakeValidSize() 814 while (*requestWidth % d3dFormatInfo.blockWidth != 0 || in MakeValidSize()
|
/third_party/mesa3d/src/amd/addrlib/src/gfx11/ |
H A D | gfx11addrlib.cpp | 2025 pOut->unalignedWidth = Min(requestMipWidth << pOut->mipId, infoOut.blockWidth / 2); 2066 tiled && (requestMipWidth <= infoOut.blockWidth / 2) && (requestMipHeight <= infoOut.blockHeight) ? 2069 const UINT_32 hwMipWidth = PowTwoAlign(ShiftCeil(infoIn.width, pIn->mipId), infoOut.blockWidth); 2076 (hwMipWidth > PowTwoAlign(requestMipWidth, infoOut.blockWidth))))) ? TRUE : FALSE; 3046 ADDR_E_RETURNCODE ret = ComputeBlockDimensionForSurf(&pOut->blockWidth, 3058 pOut->pitch = PowTwoAlign(pIn->width, pOut->blockWidth); 3075 const UINT_32 mipActualWidth = PowTwoAlign(mipWidth, pOut->blockWidth); 3131 ADDR_E_RETURNCODE returnCode = ComputeBlockDimensionForSurf(&pOut->blockWidth, 3160 pOut->pitch = PowTwoAlign(pIn->width, pOut->blockWidth); 3169 pOut->blockWidth, [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/ |
H A D | vktMeshShaderSmokeTests.cpp | 1053 const auto blockWidth = static_cast<int>(rateSize.width); in testFullscreenGradient() local 1060 for (int x = 0; x < imageDim.x() / blockWidth; ++x) in testFullscreenGradient() 1068 const auto cornerX = x * blockWidth; in testFullscreenGradient() 1072 for (int blockX = 0; blockX < blockWidth; ++blockX) 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 | 1053 const auto blockWidth = static_cast<int>(rateSize.width); in testFullscreenGradient() local 1060 for (int x = 0; x < imageDim.x() / blockWidth; ++x) in testFullscreenGradient() 1068 const auto cornerX = x * blockWidth; in testFullscreenGradient() 1072 for (int blockX = 0; blockX < blockWidth; ++blockX) in testFullscreenGradient() 1103 const auto blockAccess = tcu::getSubregion(errorAccess, cornerX, cornerY, blockWidth, blockHeight); in testFullscreenGradient()
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
H A D | NonzeroTextureCreationTests.cpp | 221 uint32_t blockWidth = utils::GetTextureFormatBlockWidth(GetParam().mFormat); in Run() local 223 wgpu::Extent3D copySize = {Align(mipSize, blockWidth), in Run() 249 blockWidth; in Run()
|
/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); 361 const deUint32 planeW = imageCreateInfo.extent.width / (formatDescription.blockWidth * formatDescription.planes[planeNdx].widthDivisor); 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 };
|
/third_party/mesa3d/src/amd/addrlib/src/gfx9/ |
H A D | gfx9addrlib.cpp | 4107 ADDR_E_RETURNCODE returnCode = ComputeBlockDimensionForSurf(&pOut->blockWidth, 4117 UINT_32 pitchAlignInElement = pOut->blockWidth; 4181 pOut->blockWidth, 4193 pOut->blockWidth, 4206 UINT_32 mip0WidthInBlk = pOut->pitch / pOut->blockWidth; 4223 pOut->mipChainPitch += (mip1WidthInBlk * pOut->blockWidth); 4256 pOut->blockWidth, 4264 pOut->mipChainPitch / pOut->blockWidth; 4391 pOut->blockWidth = (pIn->swizzleMode == ADDR_SW_LINEAR_GENERAL) ? 1 : (256 / elementBytes); 4420 UINT_32 blockWidth, [all...] |
/third_party/mesa3d/src/amd/addrlib/src/gfx10/ |
H A D | gfx10addrlib.cpp | 2421 pOut->unalignedWidth = Min(requestMipWidth << pOut->mipId, infoOut.blockWidth / 2); 2460 tiled && (requestMipWidth <= infoOut.blockWidth / 2) && (requestMipHeight <= infoOut.blockHeight) ? 2463 const UINT_32 hwMipWidth = PowTwoAlign(ShiftCeil(infoIn.width, pIn->mipId), infoOut.blockWidth); 2470 (hwMipWidth > PowTwoAlign(requestMipWidth, infoOut.blockWidth))))) ? TRUE : FALSE; 3563 ADDR_E_RETURNCODE ret = ComputeBlockDimensionForSurf(&pOut->blockWidth, 3575 pOut->pitch = PowTwoAlign(pIn->width, pOut->blockWidth); 3592 const UINT_32 mipActualWidth = PowTwoAlign(mipWidth, pOut->blockWidth); 3648 ADDR_E_RETURNCODE returnCode = ComputeBlockDimensionForSurf(&pOut->blockWidth, 3677 pOut->pitch = PowTwoAlign(pIn->width, pOut->blockWidth); 3686 pOut->blockWidth, [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/ |
H A D | vktSparseResourcesImageSparseResidency.cpp | 203 VkExtent3D compatibleShaderGridSize { shaderGridSize.x() / formatDescription.blockWidth, shaderGridSize.y() / formatDescription.blockHeight, shaderGridSize.z() / 1u }; in initPrograms() 630 const tcu::UVec3 compatibleShaderGridSize ( shaderGridSize.x() / formatDescription.blockWidth, shaderGridSize.y() / formatDescription.blockHeight, shaderGridSize.z() / 1u); in iterate() 712 const deUint32 planeW = imageCreateInfo.extent.width / (formatDescription.blockWidth * formatDescription.planes[planeNdx].widthDivisor); in iterate() 781 const tcu::UVec3 compatibleShaderGridSize (shaderGridSize.x() / formatDescription.blockWidth, shaderGridSize.y() / formatDescription.blockHeight, shaderGridSize.z() / 1u); in iterate() 805 const tcu::UVec3 compatibleShaderGridSize ( shaderGridSize.x() / formatDescription.blockWidth, shaderGridSize.y() / formatDescription.blockHeight, shaderGridSize.z() / 1u ); in iterate() 806 VkExtent3D compatibleImageSize { imageCreateInfo.extent.width / formatDescription.blockWidth, imageCreateInfo.extent.height / formatDescription.blockHeight, imageCreateInfo.extent.depth / 1u }; in iterate() 807 VkExtent3D compatibleImageGranularity { aspectRequirements.formatProperties.imageGranularity.width / formatDescription.blockWidth, in iterate()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/sparse_resources/ |
H A D | vktSparseResourcesImageSparseResidency.cpp | 203 VkExtent3D compatibleShaderGridSize { shaderGridSize.x() / formatDescription.blockWidth, shaderGridSize.y() / formatDescription.blockHeight, shaderGridSize.z() / 1u }; in initPrograms() 615 const tcu::UVec3 compatibleShaderGridSize ( shaderGridSize.x() / formatDescription.blockWidth, shaderGridSize.y() / formatDescription.blockHeight, shaderGridSize.z() / 1u); in iterate() 697 const deUint32 planeW = imageCreateInfo.extent.width / (formatDescription.blockWidth * formatDescription.planes[planeNdx].widthDivisor); in iterate() 766 const tcu::UVec3 compatibleShaderGridSize (shaderGridSize.x() / formatDescription.blockWidth, shaderGridSize.y() / formatDescription.blockHeight, shaderGridSize.z() / 1u); in iterate() 790 const tcu::UVec3 compatibleShaderGridSize ( shaderGridSize.x() / formatDescription.blockWidth, shaderGridSize.y() / formatDescription.blockHeight, shaderGridSize.z() / 1u ); in iterate() 791 VkExtent3D compatibleImageSize { imageCreateInfo.extent.width / formatDescription.blockWidth, imageCreateInfo.extent.height / formatDescription.blockHeight, imageCreateInfo.extent.depth / 1u }; in iterate() 792 VkExtent3D compatibleImageGranularity { aspectRequirements.formatProperties.imageGranularity.width / formatDescription.blockWidth, in iterate()
|