Home
last modified time | relevance | path

Searched refs:channelNdx (Results 1 – 23 of 23) sorted by relevance

/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ycbcr/
DvktYCbCrStorageImageWriteTests.cpp327 for (deUint32 channelNdx = 0; channelNdx < 4; ++channelNdx) in testStorageImageWrite() local
329 if (!formatDescription.hasChannelNdx(channelNdx)) in testStorageImageWrite()
331 deUint32 planeNdx = formatDescription.channels[channelNdx].planeNdx; in testStorageImageWrite()
335 …ription, compatibleShaderGridSize, planeRowPitches, (const void* const*)planePointers, channelNdx); in testStorageImageWrite()
337 str << "image" << channelNdx; in testStorageImageWrite()
343 for (deUint32 channelNdx = 0; channelNdx < 4; ++channelNdx) in testStorageImageWrite() local
345 if (!formatDescription.hasChannelNdx(channelNdx)) in testStorageImageWrite()
348 deUint32 planeNdx = formatDescription.channels[channelNdx].planeNdx; in testStorageImageWrite()
353 …ription, compatibleShaderGridSize, planeRowPitches, (const void* const*)planePointers, channelNdx); in testStorageImageWrite()
363 switch (channelNdx) in testStorageImageWrite()
[all …]
DvktYCbCrFormatTests.cpp514 for (deUint32 channelNdx = 0; channelNdx < 4; channelNdx++) in testFormat() local
516 if (formatInfo.hasChannelNdx(channelNdx)) in testFormat()
518 const tcu::ConstPixelBufferAccess channelAccess = imageData.getChannelAccess(channelNdx); in testFormat()
525 reference[ndx][channelNdx] = refTexView.sample(refSampler, coord.x(), coord.y(), 0.0f)[0]; in testFormat()
531 reference[ndx][channelNdx] = channelNdx == 3 ? 1.0f : 0.0f; in testFormat()
DvktYCbCrViewTests.cpp664 for (deUint32 channelNdx = 0; channelNdx < 4; channelNdx++) in testPlaneView() local
666 if (formatInfo.hasChannelNdx(channelNdx)) in testPlaneView()
668 const tcu::ConstPixelBufferAccess channelAccess = imageData.getChannelAccess(channelNdx); in testPlaneView()
675 referenceWhole[ndx][channelNdx] = refTexView.sample(refSampler, coord.x(), coord.y(), 0.0f)[0]; in testPlaneView()
681 referenceWhole[ndx][channelNdx] = channelNdx == 3 ? 1.0f : 0.0f; in testPlaneView()
DvktYCbCrUtil.cpp86 tcu::PixelBufferAccess MultiPlaneImageData::getChannelAccess (deUint32 channelNdx) in getChannelAccess() argument
102 channelNdx); in getChannelAccess()
105 tcu::ConstPixelBufferAccess MultiPlaneImageData::getChannelAccess (deUint32 channelNdx) const in getChannelAccess()
121 channelNdx); in getChannelAccess()
323 for (deUint32 channelNdx = 0; channelNdx < 4; channelNdx++) in fillGradient() local
325 if (formatInfo.hasChannelNdx(channelNdx)) in fillGradient()
327 const tcu::PixelBufferAccess channelAccess = imageData->getChannelAccess(channelNdx); in fillGradient()
336 channelAccess.setPixel(tcu::Vec4(tmpAccess.getPixel(x, y)[channelNdx]), x, y); in fillGradient()
992 int channelNdx) in getChannelAccess() argument
994 DE_ASSERT(formatInfo.hasChannelNdx(channelNdx)); in getChannelAccess()
[all …]
DvktYCbCrUtil.hpp72 tcu::PixelBufferAccess getChannelAccess (deUint32 channelNdx);
73 tcu::ConstPixelBufferAccess getChannelAccess (deUint32 channelNdx) const;
173 int channelNdx);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrStorageImageWriteTests.cpp327 for (deUint32 channelNdx = 0; channelNdx < 4; ++channelNdx) in testStorageImageWrite() local
329 if (!formatDescription.hasChannelNdx(channelNdx)) in testStorageImageWrite()
331 deUint32 planeNdx = formatDescription.channels[channelNdx].planeNdx; in testStorageImageWrite()
335 …ription, compatibleShaderGridSize, planeRowPitches, (const void* const*)planePointers, channelNdx); in testStorageImageWrite()
337 str << "image" << channelNdx; in testStorageImageWrite()
343 for (deUint32 channelNdx = 0; channelNdx < 4; ++channelNdx) in testStorageImageWrite() local
345 if (!formatDescription.hasChannelNdx(channelNdx)) in testStorageImageWrite()
348 deUint32 planeNdx = formatDescription.channels[channelNdx].planeNdx; in testStorageImageWrite()
353 …ription, compatibleShaderGridSize, planeRowPitches, (const void* const*)planePointers, channelNdx); in testStorageImageWrite()
363 switch (channelNdx) in testStorageImageWrite()
[all …]
DvktYCbCrFormatTests.cpp514 for (deUint32 channelNdx = 0; channelNdx < 4; channelNdx++) in testFormat() local
516 if (formatInfo.hasChannelNdx(channelNdx)) in testFormat()
518 const tcu::ConstPixelBufferAccess channelAccess = imageData.getChannelAccess(channelNdx); in testFormat()
525 reference[ndx][channelNdx] = refTexView.sample(refSampler, coord.x(), coord.y(), 0.0f)[0]; in testFormat()
531 reference[ndx][channelNdx] = channelNdx == 3 ? 1.0f : 0.0f; in testFormat()
DvktYCbCrViewTests.cpp664 for (deUint32 channelNdx = 0; channelNdx < 4; channelNdx++) in testPlaneView() local
666 if (formatInfo.hasChannelNdx(channelNdx)) in testPlaneView()
668 const tcu::ConstPixelBufferAccess channelAccess = imageData.getChannelAccess(channelNdx); in testPlaneView()
675 referenceWhole[ndx][channelNdx] = refTexView.sample(refSampler, coord.x(), coord.y(), 0.0f)[0]; in testPlaneView()
681 referenceWhole[ndx][channelNdx] = channelNdx == 3 ? 1.0f : 0.0f; in testPlaneView()
DvktYCbCrUtil.cpp86 tcu::PixelBufferAccess MultiPlaneImageData::getChannelAccess (deUint32 channelNdx) in getChannelAccess() argument
102 channelNdx); in getChannelAccess()
105 tcu::ConstPixelBufferAccess MultiPlaneImageData::getChannelAccess (deUint32 channelNdx) const in getChannelAccess()
121 channelNdx); in getChannelAccess()
323 for (deUint32 channelNdx = 0; channelNdx < 4; channelNdx++) in fillGradient() local
325 if (formatInfo.hasChannelNdx(channelNdx)) in fillGradient()
327 const tcu::PixelBufferAccess channelAccess = imageData->getChannelAccess(channelNdx); in fillGradient()
336 channelAccess.setPixel(tcu::Vec4(tmpAccess.getPixel(x, y)[channelNdx]), x, y); in fillGradient()
992 int channelNdx) in getChannelAccess() argument
994 DE_ASSERT(formatInfo.hasChannelNdx(channelNdx)); in getChannelAccess()
[all …]
DvktYCbCrUtil.hpp72 tcu::PixelBufferAccess getChannelAccess (deUint32 channelNdx);
73 tcu::ConstPixelBufferAccess getChannelAccess (deUint32 channelNdx) const;
173 int channelNdx);
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/sparse_resources/
DvktSparseResourcesImageSparseResidency.cpp206 for (deUint32 channelNdx = 0; channelNdx < 4; ++channelNdx) in initPrograms() local
208 if (!formatDescription.hasChannelNdx(channelNdx)) in initPrograms()
210 if (formatDescription.channels[channelNdx].planeNdx != planeNdx) in initPrograms()
212 channelsOnPlane.push_back({ channelNdx,formatDescription.channels[channelNdx].offsetBits }); in initPrograms()
759 for (deUint32 channelNdx = 0; channelNdx < 4; ++channelNdx) in iterate() local
761 if (!formatDescription.hasChannelNdx(channelNdx)) in iterate()
763 deUint32 planeNdx = formatDescription.channels[channelNdx].planeNdx; in iterate()
767 …ription, compatibleShaderGridSize, planeRowPitches, (const void* const*)planePointers, channelNdx); in iterate()
769 str << "image" << channelNdx; in iterate()
774 for (deUint32 channelNdx = 0; channelNdx < 4; ++channelNdx) in iterate() local
[all …]
DvktSparseResourcesImageMemoryAliasing.cpp730 for (deUint32 channelNdx = 0; channelNdx < 4; ++channelNdx) in iterate() local
732 if (!formatDescription.hasChannelNdx(channelNdx)) in iterate()
735 deUint32 planeNdx = formatDescription.channels[channelNdx].planeNdx; in iterate()
747 …laneRowPitches[mipmapNdx].data(), (const void* const*)planePointers[mipmapNdx].data(), channelNdx); in iterate()
759 switch (channelNdx) in iterate()
774 switch (formatDescription.channels[channelNdx].type) in iterate()
789 …or = tcu::TexVerifierUtil::computeFixedPointError(formatDescription.channels[channelNdx].sizeBits); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesImageSparseResidency.cpp206 for (deUint32 channelNdx = 0; channelNdx < 4; ++channelNdx) in initPrograms() local
208 if (!formatDescription.hasChannelNdx(channelNdx)) in initPrograms()
210 if (formatDescription.channels[channelNdx].planeNdx != planeNdx) in initPrograms()
212 channelsOnPlane.push_back({ channelNdx,formatDescription.channels[channelNdx].offsetBits }); in initPrograms()
759 for (deUint32 channelNdx = 0; channelNdx < 4; ++channelNdx) in iterate() local
761 if (!formatDescription.hasChannelNdx(channelNdx)) in iterate()
763 deUint32 planeNdx = formatDescription.channels[channelNdx].planeNdx; in iterate()
767 …ription, compatibleShaderGridSize, planeRowPitches, (const void* const*)planePointers, channelNdx); in iterate()
769 str << "image" << channelNdx; in iterate()
774 for (deUint32 channelNdx = 0; channelNdx < 4; ++channelNdx) in iterate() local
[all …]
DvktSparseResourcesImageMemoryAliasing.cpp730 for (deUint32 channelNdx = 0; channelNdx < 4; ++channelNdx) in iterate() local
732 if (!formatDescription.hasChannelNdx(channelNdx)) in iterate()
735 deUint32 planeNdx = formatDescription.channels[channelNdx].planeNdx; in iterate()
747 …laneRowPitches[mipmapNdx].data(), (const void* const*)planePointers[mipmapNdx].data(), channelNdx); in iterate()
759 switch (channelNdx) in iterate()
774 switch (formatDescription.channels[channelNdx].type) in iterate()
789 …or = tcu::TexVerifierUtil::computeFixedPointError(formatDescription.channels[channelNdx].sizeBits); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineImageViewTests.cpp589 for (int channelNdx = 0; channelNdx < 4; channelNdx++) in getComponentMappingPermutations() local
590 currentChannel[channelNdx] = channelSwizzles[(firstChannelNdx + channelNdx) % 4]; in getComponentMappingPermutations()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/
DvktPipelineImageViewTests.cpp589 for (int channelNdx = 0; channelNdx < 4; channelNdx++) in getComponentMappingPermutations() local
590 currentChannel[channelNdx] = channelSwizzles[(firstChannelNdx + channelNdx) % 4]; in getComponentMappingPermutations()
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
DvkImageUtil.hpp218 deUint32 channelNdx);
223 deUint32 channelNdx);
228 deUint32 channelNdx);
233 deUint32 channelNdx);
DvkImageUtil.cpp3441 deUint32 channelNdx) in getChannelAccess() argument
3443 DE_ASSERT(formatInfo.hasChannelNdx(channelNdx)); in getChannelAccess()
3445 const deUint32 planeNdx = formatInfo.channels[channelNdx].planeNdx; in getChannelAccess()
3446 const deUint32 planeOffsetBytes = formatInfo.channels[channelNdx].offsetBits / 8; in getChannelAccess()
3447 const deUint32 valueOffsetBits = formatInfo.channels[channelNdx].offsetBits % 8; in getChannelAccess()
3448 const deUint32 pixelStrideBytes = formatInfo.channels[channelNdx].strideBytes; in getChannelAccess()
3464 …BufferAccess(getChannelAccessFormat((tcu::TextureChannelClass)formatInfo.channels[channelNdx].type, in getChannelAccess()
3466 formatInfo.channels[channelNdx].sizeBits), in getChannelAccess()
3477 deUint32 channelNdx) in getChannelAccess() argument
3479 …tChannelAccess(formatInfo, size, planeRowPitches, const_cast<void* const*>(planePtrs), channelNdx); in getChannelAccess()
[all …]
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fFragmentOutputTests.cpp514 for (int channelNdx = 0; channelNdx < numValidChannels; channelNdx++) in clearUndefined() local
515 dstPixel[channelNdx] = srcPixel[channelNdx]; in clearUndefined()
530 for (int channelNdx = 0; channelNdx < numValidChannels; channelNdx++) in clearUndefined() local
531 dstPixel[channelNdx] = srcPixel[channelNdx]; in clearUndefined()
/third_party/vk-gl-cts/framework/common/
DtcuAstcUtil.cpp1449 for (int channelNdx = 0; channelNdx < 4; channelNdx++) in setTexelColors() local
1451 …if (!isHDREndpoint[colorEndpointNdx] || (channelNdx == 3 && colorEndpointModes[colorEndpointNdx] =… in setTexelColors()
1453 const deUint32 c0 = (e0[channelNdx] << 8) | (isSRGB ? 0x80 : e0[channelNdx]); in setTexelColors()
1454 const deUint32 c1 = (e1[channelNdx] << 8) | (isSRGB ? 0x80 : e1[channelNdx]); in setTexelColors()
1455 const deUint32 w = weight.w[ccs == channelNdx ? 1 : 0]; in setTexelColors()
1459 ((deUint8*)dst)[texelNdx*4 + channelNdx] = (deUint8)((c & 0xff00) >> 8); in setTexelColors()
1461 ((float*)dst)[texelNdx*4 + channelNdx] = c == 65535 ? 1.0f : (float)c / 65536.0f; in setTexelColors()
1466 const deUint32 c0 = e0[channelNdx] << 4; in setTexelColors()
1467 const deUint32 c1 = e1[channelNdx] << 4; in setTexelColors()
1468 const deUint32 w = weight.w[ccs == channelNdx ? 1 : 0]; in setTexelColors()
[all …]
DtcuRasterizationVerifier.cpp263 for (int channelNdx = 0; channelNdx < 3; ++channelNdx) in convertRGB8ToNativeFormat() local
265 …const int channelBitCount = (channelNdx == 0) ? (args.redBits) : (channelNdx == 1) ? (args.greenBi… in convertRGB8ToNativeFormat()
266 …const int channelPixelValue = (channelNdx == 0) ? (color.getRed()) : (channelNdx == 1) ? (color.ge… in convertRGB8ToNativeFormat()
269 pixelNativeColor[channelNdx] = channelPixelValue >> (8 - channelBitCount); in convertRGB8ToNativeFormat()
271 pixelNativeColor[channelNdx] = channelPixelValue; in convertRGB8ToNativeFormat()
276 pixelNativeColor[channelNdx] = channelPixelValue << (channelBitCount - 8); in convertRGB8ToNativeFormat()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/
DvktShaderRenderOperatorTests.cpp475 for (int channelNdx = 0; channelNdx < 4; channelNdx++) in evaluate() local
476 if (s_outSwizzleChannelMasks[m_resultScalarSize - 1][channelNdx]) in evaluate()
477 ctx.color[channelNdx] = ctx.color[channelNdx] * m_evaluatedScale + m_evaluatedBias; in evaluate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderOperatorTests.cpp475 for (int channelNdx = 0; channelNdx < 4; channelNdx++) in evaluate() local
476 if (s_outSwizzleChannelMasks[m_resultScalarSize - 1][channelNdx]) in evaluate()
477 ctx.color[channelNdx] = ctx.color[channelNdx] * m_evaluatedScale + m_evaluatedBias; in evaluate()