Home
last modified time | relevance | path

Searched refs:blockWidth (Results 1 – 25 of 46) sorted by relevance

12

/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DQueueWriteTextureValidationTests.cpp597 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 …]
DCopyCommandsValidationTests.cpp2113 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 …]
DTextureValidationTests.cpp729 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/
DTestUtils.cpp29 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/
DCopySplitTests.cpp38 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/
Dd3d_format.cpp24 blockWidth(0), in D3DFormat()
37 GLuint blockWidth, in D3DFormat() argument
48 blockWidth(blockWidth), in D3DFormat()
Dd3d_format.h24 GLuint blockWidth,
38 GLuint blockWidth; member
/third_party/vk-gl-cts/framework/common/
DtcuAstcUtil.cpp456 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 …]
DtcuAstcUtil.hpp71 void generateDummyNormalBlocks (deUint8* dst, size_t numBlocks, int blockWidth, int blockHeight);
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
Dformatutils11.h38 DXGIFormatSize(GLuint pixelBits, GLuint blockWidth, GLuint blockHeight);
41 GLuint blockWidth; member
Dformatutils11.cpp35 DXGIFormatSize::DXGIFormatSize(GLuint pixelBits, GLuint blockWidth, GLuint blockHeight) in DXGIFormatSize() argument
36 : pixelBytes(pixelBits / 8), blockWidth(blockWidth), blockHeight(blockHeight) in DXGIFormatSize()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
DvktImageTestsUtil.cpp478 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/skia/third_party/externals/swiftshader/src/Vulkan/
DVkImage.cpp461 ((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 …]
DVkFormat.hpp52 int blockWidth() const;
/third_party/skia/third_party/externals/angle2/src/image_util/
Dloadimage.inc113 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/
DvktYCbCrStorageImageWriteTests.cpp245 …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()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DNonzeroTextureCreationTests.cpp221 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/mesa3d/src/amd/addrlib/src/gfx11/
Dgfx11addrlib.cpp2025 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/gstreamer/gstplugins_bad/gst/jpegformat/
Dgstjpegparse.c347 guint8 blockWidth[3]; /* Array[numComponents] giving the number of in gst_jpeg_parse_sof() local
384 blockWidth[i] = (value & 0xf0) >> 4; in gst_jpeg_parse_sof()
397 temp = (blockWidth[0] * blockHeight[0]) / (blockWidth[1] * blockHeight[1]); in gst_jpeg_parse_sof()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
Drenderer9_utils.cpp796 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/mesa3d/src/amd/addrlib/src/gfx9/
Dgfx9addrlib.cpp4107 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 …]
Dgfx9addrlib.h546 UINT_32 blockWidth,
564 UINT_32 blockWidth,
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesImageSparseResidency.cpp203 …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/mesa3d/src/amd/addrlib/src/gfx10/
Dgfx10addrlib.cpp2421 pOut->unalignedWidth = Min(requestMipWidth << pOut->mipId, infoOut.blockWidth / 2); in HwlComputeNonBlockCompressedView()
2460 …tiled && (requestMipWidth <= infoOut.blockWidth / 2) && (requestMipHeight <= infoOut.blockHeight) ? in HwlComputeNonBlockCompressedView()
2463 … const UINT_32 hwMipWidth = PowTwoAlign(ShiftCeil(infoIn.width, pIn->mipId), infoOut.blockWidth); in HwlComputeNonBlockCompressedView()
2470 … (hwMipWidth > PowTwoAlign(requestMipWidth, infoOut.blockWidth))))) ? TRUE : FALSE; in HwlComputeNonBlockCompressedView()
3563 ADDR_E_RETURNCODE ret = ComputeBlockDimensionForSurf(&pOut->blockWidth, in ComputeSurfaceInfoMicroTiled()
3575 pOut->pitch = PowTwoAlign(pIn->width, pOut->blockWidth); in ComputeSurfaceInfoMicroTiled()
3592 const UINT_32 mipActualWidth = PowTwoAlign(mipWidth, pOut->blockWidth); in ComputeSurfaceInfoMicroTiled()
3648 ADDR_E_RETURNCODE returnCode = ComputeBlockDimensionForSurf(&pOut->blockWidth, in ComputeSurfaceInfoMacroTiled()
3677 pOut->pitch = PowTwoAlign(pIn->width, pOut->blockWidth); in ComputeSurfaceInfoMacroTiled()
3686 pOut->blockWidth, in ComputeSurfaceInfoMacroTiled()
[all …]
/third_party/mesa3d/src/amd/addrlib/inc/
Daddrinterface.h638 UINT_32 blockWidth; ///< Width in element inside one block(1D->Micro, 2D->Macro) member
882 AddrHtileBlockSize blockWidth; ///< 4 or 8. EG above only support 8 member
956 AddrHtileBlockSize blockWidth; ///< 4 or 8. 1 means 8, 0 means 4. EG above only support 8 member
1019 AddrHtileBlockSize blockWidth; ///< 4 or 8. 1 means 8, 0 means 4. R8xx/R9xx only support 8 member
2509 UINT_32 blockWidth; ///< Width in element inside one block member

12