Home
last modified time | relevance | path

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

1234

/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 …]
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DTextureCopySplitter.cpp33 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/external/vulkancts/modules_no_buildgn/vulkan/image/
DvktImageTestsUtil.cpp441 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/vulkan/image/
DvktImageTestsUtil.cpp441 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/
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 …]
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/
DTexture.cpp174 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()
DFormat.cpp76 internalFormat.blockWidth = 1; in BuildFormatTable()
90 internalFormat.blockWidth = 1; in BuildFormatTable()
104 internalFormat.blockWidth = width; in BuildFormatTable()
DCommandEncoder.cpp206 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/angle2/src/libANGLE/renderer/d3d/d3d11/
Dformatutils11.h38 DXGIFormatSize(GLuint pixelBits, GLuint blockWidth, GLuint blockHeight);
41 GLuint blockWidth; member
/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/d3d12/
DCopySplitTests.cpp36 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/libANGLE/renderer/d3d/d3d11/
Dformatutils11.h37 DXGIFormatSize(GLuint pixelBits, GLuint blockWidth, GLuint blockHeight);
40 GLuint blockWidth; member
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
Dformatutils9.h35 GLuint blockWidth,
49 GLuint blockWidth; member
Drenderer9_utils.cpp777 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/flutter/skia/third_party/externals/angle2/src/image_util/
Dloadimage.inc115 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/
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_no_buildgn/vulkan/ycbcr/
DvktYCbCrStorageImageWriteTests.cpp216 …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/vulkan/ycbcr/
DvktYCbCrStorageImageWriteTests.cpp216 …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/
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()

1234