/third_party/vk-gl-cts/framework/opengl/ |
H A D | gluPixelTransfer.cpp | 38 int pixelSize = format.getPixelSize(); in getTransferAlignment() 54 TCU_CHECK_INTERNAL(dst.getRowPitch() == dst.getFormat().getPixelSize()*dst.getWidth()); in readPixels() 73 TCU_CHECK_INTERNAL(src.getRowPitch() == src.getFormat().getPixelSize()*src.getWidth()); in texImage2D() 91 TCU_CHECK_INTERNAL(src.getRowPitch() == src.getFormat().getPixelSize()*src.getWidth()); in texImage3D() 112 TCU_CHECK_INTERNAL(src.getRowPitch() == src.getFormat().getPixelSize()*src.getWidth()); in texSubImage2D() 130 TCU_CHECK_INTERNAL(src.getRowPitch() == src.getFormat().getPixelSize()*src.getWidth()); in texSubImage3D()
|
H A D | gluTexture.cpp | 43 int pixelSize = format.getPixelSize(); in computePixelStore() 180 DE_ASSERT(access.getRowPitch() == access.getFormat().getPixelSize()*access.getWidth()); in upload() 313 DE_ASSERT(access.getRowPitch() == access.getFormat().getPixelSize()*access.getWidth()); in upload() 401 DE_ASSERT(access.getRowPitch() == access.getFormat().getPixelSize()*access.getWidth()); in upload() 520 DE_ASSERT(access.getRowPitch() == access.getFormat().getPixelSize()*access.getWidth()); in upload() 607 DE_ASSERT(access.getRowPitch() == access.getFormat().getPixelSize()*access.getWidth()); in upload() 608 DE_ASSERT(access.getSlicePitch() == access.getFormat().getPixelSize()*access.getWidth()*access.getHeight()); in upload() 729 DE_ASSERT(access.getRowPitch() == access.getFormat().getPixelSize()*access.getWidth()); in upload() 730 DE_ASSERT(access.getSlicePitch() == access.getFormat().getPixelSize()*access.getWidth()*access.getHeight()); in upload() 820 DE_ASSERT(access.getRowPitch() == access.getFormat().getPixelSize()*acces in upload() [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/common/ |
H A D | glcNearestEdgeTests.cpp | 268 m_texData.resize(m_width * m_height * tcu::getPixelSize(m_texFormat)); in fillTexture() 291 if (tcu::getPixelSize(m_texFormat) < 4) in fillTexture() 357 std::vector<deUint8> fbData(m_width * m_height * tcu::getPixelSize(m_texFormat)); in verifyResults() 358 if (tcu::getPixelSize(m_texFormat) < 4) in verifyResults() 368 const auto diffBytes = tcu::getPixelSize(diffFormat) * m_width * m_height; in verifyResults()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
H A D | vktPipelineImageUtil.cpp | 249 const VkDeviceSize pixelDataSize = renderSize.x() * renderSize.y() * tcuFormat.getPixelSize(); 330 const VkDeviceSize pixelDataSize = renderSize.x() * renderSize.y() * bufferFormat.getPixelSize(); in readDepthAttachment() 388 const VkDeviceSize pixelDataSize = renderSize.x() * renderSize.y() * bufferFormat.getPixelSize(); in readStencilAttachment() 786 offsetMultiples.push_back(getLevel(0, 0).getFormat().getPixelSize()); in getSize() 794 textureSize += level.getWidth() * level.getHeight() * level.getDepth() * level.getFormat().getPixelSize(); in getSize() 898 offsetMultiples.push_back(getLevel(0, 0).getFormat().getPixelSize()); in getBufferCopyRegions() 931 layerDataOffset += level.getWidth() * level.getHeight() * level.getDepth() * level.getFormat().getPixelSize(); in getBufferCopyRegions() 965 offsetMultiples.push_back(getLevel(0, 0).getFormat().getPixelSize()); in write() 977 levelOffset += srcAccess.getWidth() * srcAccess.getHeight() * srcAccess.getDepth() * srcAccess.getFormat().getPixelSize(); in write() 1144 const deUint32 layerSize = levelLayers.getWidth() * levelLayers.getFormat().getPixelSize(); in getLevel() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/ |
H A D | vktPipelineImageUtil.cpp | 239 const VkDeviceSize pixelDataSize = renderSize.x() * renderSize.y() * tcuFormat.getPixelSize(); 320 const VkDeviceSize pixelDataSize = renderSize.x() * renderSize.y() * bufferFormat.getPixelSize(); in readDepthAttachment() 378 const VkDeviceSize pixelDataSize = renderSize.x() * renderSize.y() * bufferFormat.getPixelSize(); in readStencilAttachment() 776 offsetMultiples.push_back(getLevel(0, 0).getFormat().getPixelSize()); in getSize() 784 textureSize += level.getWidth() * level.getHeight() * level.getDepth() * level.getFormat().getPixelSize(); in getSize() 888 offsetMultiples.push_back(getLevel(0, 0).getFormat().getPixelSize()); in getBufferCopyRegions() 921 layerDataOffset += level.getWidth() * level.getHeight() * level.getDepth() * level.getFormat().getPixelSize(); in getBufferCopyRegions() 955 offsetMultiples.push_back(getLevel(0, 0).getFormat().getPixelSize()); in write() 967 levelOffset += srcAccess.getWidth() * srcAccess.getHeight() * srcAccess.getDepth() * srcAccess.getFormat().getPixelSize(); in write() 1134 const deUint32 layerSize = levelLayers.getWidth() * levelLayers.getFormat().getPixelSize(); in getLevel() [all...] |
H A D | vktPipelineRenderToImageTests.cpp | 798 VkDeviceSize colorSize = product(imageSize) * tcu::getPixelSize(mapVkFormat(caseDef.colorFormat)); in testWithSizeReduction() 799 VkDeviceSize depthStencilSize = (useDepthStencil ? product(imageSize) * tcu::getPixelSize(mapVkFormat(caseDef.depthStencilFormat)) : 0ull); in testWithSizeReduction() 821 colorSize = product(imageSize) * tcu::getPixelSize(mapVkFormat(caseDef.colorFormat)); in testWithSizeReduction() 822 depthStencilSize = (useDepthStencil ? product(imageSize) * tcu::getPixelSize(mapVkFormat(caseDef.depthStencilFormat)) : 0ull); in testWithSizeReduction() 847 colorSize = product(imageSize) * tcu::getPixelSize(mapVkFormat(caseDef.colorFormat)); in testWithSizeReduction() 848 depthStencilSize = (useDepthStencil ? product(imageSize) * tcu::getPixelSize(mapVkFormat(caseDef.depthStencilFormat)) : 0ull); in testWithSizeReduction() 877 const VkDeviceSize colorBufferSize = product(checkSize) * tcu::getPixelSize(mapVkFormat(caseDef.colorFormat)); in testWithSizeReduction() 1326 const vector<VkDeviceSize> mipLevelStorageSizes = getPerMipLevelStorageSize(mipLevelSizes, tcu::getPixelSize(mapVkFormat(caseDef.colorFormat))); in testRenderToMipMaps()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/ |
H A D | vktDrawImageObjectUtil.cpp | 177 m_pixelAccessData.resize(width * height * vk::mapVkFormat(m_format).getPixelSize()); in readSurface() 203 m_pixelAccessData.resize(width * height * tcuFormat.getPixelSize()); in readDepth() 221 m_pixelAccessData.resize(width * height * depth * vk::mapVkFormat(m_format).getPixelSize()); in readVolume() 244 m_pixelAccessData.resize(width * vk::mapVkFormat(m_format).getPixelSize()); in readSurface1D() 300 bufferSize = vk::mapVkFormat(m_format).getPixelSize() * width * height * depth; in readUsingBuffer() 422 m_pixelAccessData.resize(width * height * vk::mapVkFormat(m_format).getPixelSize()); in readSurfaceLinear() 452 MemoryOp::unpack(vk::mapVkFormat(m_format).getPixelSize(), width, height, depth, in readLinear() 700 bufferSize = vk::mapVkFormat(m_format).getPixelSize() *width*height*depth; in uploadUsingBuffer() 801 MemoryOp::pack(vk::mapVkFormat(m_format).getPixelSize(), width, height, depth, in uploadLinear()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/ |
H A D | vktDrawImageObjectUtil.cpp | 177 m_pixelAccessData.resize(width * height * vk::mapVkFormat(m_format).getPixelSize()); in readSurface() 203 m_pixelAccessData.resize(width * height * tcuFormat.getPixelSize()); in readDepth() 221 m_pixelAccessData.resize(width * height * depth * vk::mapVkFormat(m_format).getPixelSize()); in readVolume() 244 m_pixelAccessData.resize(width * vk::mapVkFormat(m_format).getPixelSize()); in readSurface1D() 300 bufferSize = vk::mapVkFormat(m_format).getPixelSize() * width * height * depth; in readUsingBuffer() 422 m_pixelAccessData.resize(width * height * vk::mapVkFormat(m_format).getPixelSize()); in readSurfaceLinear() 452 MemoryOp::unpack(vk::mapVkFormat(m_format).getPixelSize(), width, height, depth, in readLinear() 700 bufferSize = vk::mapVkFormat(m_format).getPixelSize() *width*height*depth; in uploadUsingBuffer() 801 MemoryOp::pack(vk::mapVkFormat(m_format).getPixelSize(), width, height, depth, in uploadLinear()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/compute/ |
H A D | vktComputeTestsUtil.hpp | 49 return tcu::getPixelSize(vk::mapVkFormat(format)) * imageSize.x() * imageSize.y() * imageSize.z(); in getImageSizeBytes()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/compute/ |
H A D | vktComputeTestsUtil.hpp | 49 return tcu::getPixelSize(vk::mapVkFormat(format)) * imageSize.x() * imageSize.y() * imageSize.z(); in getImageSizeBytes()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
H A D | UnpackAlignmentTest.cpp | 47 void getPixelSize(GLenum format, GLenum type, unsigned int *size) in getPixelSize() function in __anon20239::UnpackAlignmentTest 105 getPixelSize(format, type, &pixelSize); in testAlignment()
|
/third_party/vk-gl-cts/modules/internal/ |
H A D | ditImageIOTests.cpp | 60 TCU_CHECK(texture.getAccess().getRowPitch() == texture.getWidth()*texture.getFormat().getPixelSize()); in iterate()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/descriptor_indexing/ |
H A D | vktDescriptorSetsIndexingTests.hpp | 268 return extent.width * extent.height * extent.depth * format.getPixelSize(); in calcTexSize() 272 return width * height * depth * format.getPixelSize(); in calcTexSize()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/geometry/ |
H A D | vktGeometryTestsUtil.cpp | 431 const deUint32 colorPixelSize = static_cast<deUint32>(tcu::getPixelSize(textureFormat)); in fillBuffer() 450 const deUint32 colorPixelSize = static_cast<deUint32>(tcu::getPixelSize(textureFormat)); in fillBuffer()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/ |
H A D | vktImageExtendedUsageBitTests.cpp | 121 mapVkFormat(format0).getPixelSize() == mapVkFormat(format1).getPixelSize()) in isCompatibleFormat()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/descriptor_indexing/ |
H A D | vktDescriptorSetsIndexingTests.hpp | 268 return extent.width * extent.height * extent.depth * format.getPixelSize(); in calcTexSize() 272 return width * height * depth * format.getPixelSize(); in calcTexSize()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/geometry/ |
H A D | vktGeometryTestsUtil.cpp | 431 const deUint32 colorPixelSize = static_cast<deUint32>(tcu::getPixelSize(textureFormat)); in fillBuffer() 450 const deUint32 colorPixelSize = static_cast<deUint32>(tcu::getPixelSize(textureFormat)); in fillBuffer()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/ |
H A D | vktImageExtendedUsageBitTests.cpp | 121 mapVkFormat(format0).getPixelSize() == mapVkFormat(format1).getPixelSize()) in isCompatibleFormat()
|
/third_party/vk-gl-cts/modules/glshared/ |
H A D | glsFragmentOpUtil.cpp | 283 original.getFormat().getPixelSize(), in getMultisampleAccess() 294 original.getFormat().getPixelSize(), in getMultisampleAccess()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/ |
H A D | vktSpvAsmCrossStageInterfaceTests.cpp | 532 const int pixelSize = referenceFrame.getFormat().getPixelSize(); in checkImage() 591 deMemcpy (referenceFrame.getLevel(0).getPixelPtr(0,y), referenceFrame.getLevel(0).getPixelPtr(0,0), m_extent.width * m_extent.depth* referenceFrame.getFormat().getPixelSize()); in interpolationFill() 615 deMemcpy (referenceFrame.getLevel(0).getPixelPtr(0,y), referenceFrame.getLevel(0).getPixelPtr(0,0), m_extent.width * m_extent.depth* referenceFrame.getFormat().getPixelSize()); in perspectiveFill() 625 deMemcpy (referenceFrame.getLevel(0).getPixelPtr(0,y), referenceFrame.getLevel(0).getPixelPtr(0,0), m_extent.width * m_extent.depth* referenceFrame.getFormat().getPixelSize()); in redFill()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/spirv_assembly/ |
H A D | vktSpvAsmCrossStageInterfaceTests.cpp | 532 const int pixelSize = referenceFrame.getFormat().getPixelSize(); in checkImage() 591 deMemcpy (referenceFrame.getLevel(0).getPixelPtr(0,y), referenceFrame.getLevel(0).getPixelPtr(0,0), m_extent.width * m_extent.depth* referenceFrame.getFormat().getPixelSize()); in interpolationFill() 615 deMemcpy (referenceFrame.getLevel(0).getPixelPtr(0,y), referenceFrame.getLevel(0).getPixelPtr(0,0), m_extent.width * m_extent.depth* referenceFrame.getFormat().getPixelSize()); in perspectiveFill() 625 deMemcpy (referenceFrame.getLevel(0).getPixelPtr(0,y), referenceFrame.getLevel(0).getPixelPtr(0,0), m_extent.width * m_extent.depth* referenceFrame.getFormat().getPixelSize()); in redFill()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/ |
H A D | vktShaderRender.cpp | 1001 offsetMultiples.push_back(texFormat.getPixelSize()); 1011 bufferSize += access.getWidth() * access.getHeight() * access.getDepth() * access.getFormat().getPixelSize(); 1072 layerDataOffset += access.getWidth() * access.getHeight() * access.getDepth() * access.getFormat().getPixelSize(); 1288 offsetMultiples.push_back(texFormat.getPixelSize()); 1303 bufferSize += access.getWidth() * access.getHeight() * access.getDepth() * access.getFormat().getPixelSize(); 1365 layerDataOffset += access.getWidth() * access.getHeight() * access.getDepth() * access.getFormat().getPixelSize(); 1458 const deUint32 layerSize = levelLayers.getWidth() * levelLayers.getHeight() * levelLayers.getFormat().getPixelSize(); 1523 const deUint32 layerSize = levelLayers.getWidth() * levelLayers.getFormat().getPixelSize(); 1549 const deUint32 layerSize = levelLayers.getWidth() * levelLayers.getHeight() * levelLayers.getFormat().getPixelSize(); 2348 const VkDeviceSize imageSizeBytes = (VkDeviceSize)(resultFormat.getPixelSize() * m_renderSiz [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/gl/ |
H A D | gl4cSparseTexture2Tests.cpp | 1066 GLint texSize = width * height * depth * mState.format.getPixelSize(); in writeDataToTexture() 1171 GLint texSize = width * height * depth * mState.format.getPixelSize(); in verifyTextureData() 1191 int pixelSize = mState.format.getPixelSize(); in verifyTextureData() 1209 GLint texSize = width * height * mState.format.getPixelSize(); in verifyTextureData() 1236 int pixelSize = mState.format.getPixelSize(); in verifyTextureData() 1766 GLint texSize = width * height * depth * mState.format.getPixelSize(); in verifyTextureDataExtended() 1787 int pixelSize = mState.format.getPixelSize(); in verifyTextureDataExtended() 1816 GLint texSize = width * height * mState.format.getPixelSize(); in verifyTextureDataExtended() 1843 int pixelSize = mState.format.getPixelSize(); in verifyTextureDataExtended() 2769 GLint texSize = width * height * depth * mState.format.getPixelSize(); in writeDataToTexture() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/ |
H A D | vktShaderRender.cpp | 1003 offsetMultiples.push_back(texFormat.getPixelSize()); 1013 bufferSize += access.getWidth() * access.getHeight() * access.getDepth() * access.getFormat().getPixelSize(); 1074 layerDataOffset += access.getWidth() * access.getHeight() * access.getDepth() * access.getFormat().getPixelSize(); 1290 offsetMultiples.push_back(texFormat.getPixelSize()); 1305 bufferSize += access.getWidth() * access.getHeight() * access.getDepth() * access.getFormat().getPixelSize(); 1367 layerDataOffset += access.getWidth() * access.getHeight() * access.getDepth() * access.getFormat().getPixelSize(); 1460 const deUint32 layerSize = levelLayers.getWidth() * levelLayers.getHeight() * levelLayers.getFormat().getPixelSize(); 1525 const deUint32 layerSize = levelLayers.getWidth() * levelLayers.getFormat().getPixelSize(); 1551 const deUint32 layerSize = levelLayers.getWidth() * levelLayers.getHeight() * levelLayers.getFormat().getPixelSize(); 2350 const VkDeviceSize imageSizeBytes = (VkDeviceSize)(resultFormat.getPixelSize() * m_renderSiz [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/ |
H A D | vktDynamicRenderingUnusedAttachmentsTests.cpp | 534 const auto depthVerificationBufferSize = static_cast<VkDeviceSize>(tcu::getPixelSize(depthCopyFormat) * fbExtent.width * fbExtent.height * fbExtent.depth * m_params.layerCount); in iterate() 538 const auto stencilVerificationBufferSize = static_cast<VkDeviceSize>(tcu::getPixelSize(stencilCopyFormat) * fbExtent.width * fbExtent.height * fbExtent.depth * m_params.layerCount); in iterate() 892 const auto colorPixelSize = tcu::getPixelSize(colorTcuFormat); in iterate() 932 const auto depthPixelSize = tcu::getPixelSize(depthCopyFormat); in iterate() 955 const auto stencilPixelSize = tcu::getPixelSize(stencilCopyFormat); in iterate()
|