/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/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/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/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/vk-gl-cts/external/vulkancts/modules/vulkan/image/ |
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/ |
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/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 …]
|
D | VkFormat.hpp | 52 int blockWidth() const;
|
/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/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 | 216 …const tcu::UVec3 compatibleShaderGridSize ( params.size.x() / formatDescription.blockWidth, par… in testStorageImageWrite() 274 …const deUint32 planeW = imageCreateInfo.extent.width / (formatDescription.blockWidth * formatDesc… in testStorageImageWrite() 334 …const tcu::UVec3 compatibleShaderGridSize ( params.size.x() / formatDescription.blockWidth, para… in testStorageImageWrite() 351 …const tcu::UVec3 compatibleShaderGridSize ( params.size.x() / formatDescription.blockWidth, pa… in testStorageImageWrite() 352 …mpatibleImageSize { imageCreateInfo.extent.width / formatDescription.blockWidth, imageCreateInfo… in testStorageImageWrite() 610 …VkExtent3D compatibleShaderGridSize { shaderGridSize.x() / formatDescription.blockWidth, shad… in initPrograms()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ycbcr/ |
D | vktYCbCrStorageImageWriteTests.cpp | 216 …const tcu::UVec3 compatibleShaderGridSize ( params.size.x() / formatDescription.blockWidth, par… in testStorageImageWrite() 274 …const deUint32 planeW = imageCreateInfo.extent.width / (formatDescription.blockWidth * formatDesc… in testStorageImageWrite() 334 …const tcu::UVec3 compatibleShaderGridSize ( params.size.x() / formatDescription.blockWidth, para… in testStorageImageWrite() 351 …const tcu::UVec3 compatibleShaderGridSize ( params.size.x() / formatDescription.blockWidth, pa… in testStorageImageWrite() 352 …mpatibleImageSize { imageCreateInfo.extent.width / formatDescription.blockWidth, imageCreateInfo… in testStorageImageWrite() 610 …VkExtent3D compatibleShaderGridSize { shaderGridSize.x() / formatDescription.blockWidth, shad… in initPrograms()
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
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/vulkan-docs/src/chapters/ |
D | copies.adoc | 463 {empty}:: [eq]#x# is in the range [eq]#[pname:imageOffset.x / blockWidth, 465 blockWidth{rceil})#, 477 and where [eq]#blockWidth#, [eq]#blockHeight#, and [eq]#blockDepth# are the 484 {empty}:: [eq]#[x {times} blockWidth, max( (x {times} blockWidth) {plus} 485 blockWidth, imageWidth) )# 503 {lceil}pname:imageExtent.width / blockWidth{rceil} {times} 520 {empty}:: [eq]#blockWidth' = blockWidth# 529 blockWidth, {lceil}(pname:imageOffset.y {plus} 530 pname:imageExtent.width) / blockWidth{rceil})# 531 {empty}:: [eq]#blockWidth' = blockHeight# [all …]
|
/third_party/mesa3d/src/amd/addrlib/src/gfx11/ |
D | gfx11addrlib.cpp | 2025 pOut->unalignedWidth = Min(requestMipWidth << pOut->mipId, infoOut.blockWidth / 2); in HwlComputeNonBlockCompressedView() 2066 …tiled && (requestMipWidth <= infoOut.blockWidth / 2) && (requestMipHeight <= infoOut.blockHeight) ? in HwlComputeNonBlockCompressedView() 2069 … const UINT_32 hwMipWidth = PowTwoAlign(ShiftCeil(infoIn.width, pIn->mipId), infoOut.blockWidth); in HwlComputeNonBlockCompressedView() 2076 … (hwMipWidth > PowTwoAlign(requestMipWidth, infoOut.blockWidth))))) ? TRUE : FALSE; in HwlComputeNonBlockCompressedView() 3046 ADDR_E_RETURNCODE ret = ComputeBlockDimensionForSurf(&pOut->blockWidth, in ComputeSurfaceInfoMicroTiled() 3058 pOut->pitch = PowTwoAlign(pIn->width, pOut->blockWidth); in ComputeSurfaceInfoMicroTiled() 3075 const UINT_32 mipActualWidth = PowTwoAlign(mipWidth, pOut->blockWidth); in ComputeSurfaceInfoMicroTiled() 3131 ADDR_E_RETURNCODE returnCode = ComputeBlockDimensionForSurf(&pOut->blockWidth, in ComputeSurfaceInfoMacroTiled() 3160 pOut->pitch = PowTwoAlign(pIn->width, pOut->blockWidth); in ComputeSurfaceInfoMacroTiled() 3169 pOut->blockWidth, in ComputeSurfaceInfoMacroTiled() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/ |
D | renderer9_utils.cpp | 796 GLuint numBlocksWide = (width + d3dFormatInfo.blockWidth - 1) / d3dFormatInfo.blockWidth; in ComputeBlockSize() 811 if (isImage || *requestWidth < static_cast<GLsizei>(d3dFormatInfo.blockWidth) || in MakeValidSize() 814 while (*requestWidth % d3dFormatInfo.blockWidth != 0 || in MakeValidSize()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/ |
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/ |
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/mesa3d/src/amd/addrlib/src/gfx9/ |
D | gfx9addrlib.cpp | 4107 ADDR_E_RETURNCODE returnCode = ComputeBlockDimensionForSurf(&pOut->blockWidth, in HwlComputeSurfaceInfoTiled() 4117 UINT_32 pitchAlignInElement = pOut->blockWidth; in HwlComputeSurfaceInfoTiled() 4181 pOut->blockWidth, in HwlComputeSurfaceInfoTiled() 4193 pOut->blockWidth, in HwlComputeSurfaceInfoTiled() 4206 UINT_32 mip0WidthInBlk = pOut->pitch / pOut->blockWidth; in HwlComputeSurfaceInfoTiled() 4223 pOut->mipChainPitch += (mip1WidthInBlk * pOut->blockWidth); in HwlComputeSurfaceInfoTiled() 4256 pOut->blockWidth, in HwlComputeSurfaceInfoTiled() 4264 pOut->mipChainPitch / pOut->blockWidth; in HwlComputeSurfaceInfoTiled() 4391 … pOut->blockWidth = (pIn->swizzleMode == ADDR_SW_LINEAR_GENERAL) ? 1 : (256 / elementBytes); in HwlComputeSurfaceInfoLinear() 4420 UINT_32 blockWidth, in GetMipChainInfo() argument [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/ |
D | vktSparseResourcesImageSparseResidency.cpp | 203 …VkExtent3D compatibleShaderGridSize { shaderGridSize.x() / formatDescription.blockWidth, shad… in initPrograms() 615 …const tcu::UVec3 compatibleShaderGridSize ( shaderGridSize.x() / formatDescription.blockWidth, … in iterate() 697 …const deUint32 planeW = imageCreateInfo.extent.width / (formatDescription.blockWidth * formatDesc… in iterate() 766 …const tcu::UVec3 compatibleShaderGridSize (shaderGridSize.x() / formatDescription.blockWidth, sh… in iterate() 790 …const tcu::UVec3 compatibleShaderGridSize ( shaderGridSize.x() / formatDescription.blockWidth, … in iterate() 791 …mpatibleImageSize { imageCreateInfo.extent.width / formatDescription.blockWidth, imageCreateInfo… in iterate() 792 …larity { aspectRequirements.formatProperties.imageGranularity.width / formatDescription.blockWidth, in iterate()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/sparse_resources/ |
D | vktSparseResourcesImageSparseResidency.cpp | 203 …VkExtent3D compatibleShaderGridSize { shaderGridSize.x() / formatDescription.blockWidth, shad… in initPrograms() 615 …const tcu::UVec3 compatibleShaderGridSize ( shaderGridSize.x() / formatDescription.blockWidth, … in iterate() 697 …const deUint32 planeW = imageCreateInfo.extent.width / (formatDescription.blockWidth * formatDesc… in iterate() 766 …const tcu::UVec3 compatibleShaderGridSize (shaderGridSize.x() / formatDescription.blockWidth, sh… in iterate() 790 …const tcu::UVec3 compatibleShaderGridSize ( shaderGridSize.x() / formatDescription.blockWidth, … in iterate() 791 …mpatibleImageSize { imageCreateInfo.extent.width / formatDescription.blockWidth, imageCreateInfo… in iterate() 792 …larity { aspectRequirements.formatProperties.imageGranularity.width / formatDescription.blockWidth, in iterate()
|