Home
last modified time | relevance | path

Searched refs:deUint16 (Results 1 – 25 of 162) sorted by relevance

1234567

/third_party/vk-gl-cts/framework/delibs/decpp/
DdeThreadSafeRingBuffer.cpp42 Message (deUint16 threadId, deUint16 payload) in Message()
52 deUint16 getThreadId (void) const { return (deUint16)(data >> 16); } in getThreadId()
53 deUint16 getPayload (void) const { return (deUint16)(data & 0xffff); } in getPayload()
72 deUint16 threadId = msg.getThreadId(); in run()
85 deUint32 getPayloadSum (deUint16 threadId) const in getPayloadSum()
92 vector<deUint16> m_lastPayload;
99 Producer (ThreadSafeRingBuffer<Message>& buffer, deUint16 threadId, int dataSize) in Producer()
112 m_buffer.pushFront(Message(m_threadId, (deUint16)ndx)); in run()
117 deUint16 m_threadId;
138 producers.push_back(new Producer(buffer, (deUint16)i, dataSize)); in ThreadSafeRingBuffer_selfTest()
[all …]
DdeBlockBuffer.cpp43 Message (deUint16 threadId, deUint16 payload) in Message()
53 deUint16 getThreadId (void) const { return (deUint16)(data >> 16); } in getThreadId()
54 deUint16 getPayload (void) const { return (deUint16)(data & 0xffff); } in getPayload()
84 deUint16 threadId = msg.getThreadId(); in run()
111 deUint32 getPayloadSum (deUint16 threadId) const in getPayloadSum()
118 vector<deUint16> m_lastPayload;
125 Producer (MessageBuffer& buffer, deUint16 threadId, int numMessages) in Producer()
145 tmpBuf[ndx] = Message(m_threadId, (deUint16)msgNdx++); in run()
155 deUint16 m_threadId;
175 producers.push_back(new Producer(buffer, (deUint16)i, dataSize)); in runTest()
[all …]
DdeRandom.hpp56 deUint16 getUint16 (void) { return (deUint16)deRandom_getUint32(&m_rnd); } in getUint16()
188 template<> inline deUint16 randomScalar (de::Random& rnd, deUint16 minValue, deUint16 maxValue) { … in randomScalar()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderLimitTests.cpp76 const deUint16 indices[12] = in iterate()
115 addAttribute(0u, VK_FORMAT_R32G32B32A32_SFLOAT, deUint16(sizeof(float) * 4), 6, vertices); in setupDefaultInputs()
121 …stContext& testCtx, const string& name, const string& description, const deUint16 inputComponents);
129 const deUint16 m_inputComponents;
132 …estContext& testCtx, const string& name, const string& description, const deUint16 inputComponents) in FragmentInputComponentCase()
184 deUint16 maxLocations = (deUint16)deCeilToInt32((float)(m_inputComponents - 4) / 4u); in initPrograms()
189 for (deUint16 loc = 0; loc < maxLocations; loc++) in initPrograms()
226 const deUint16 maxFragmentInputComponents = (deUint16)limits.maxFragmentInputComponents; in createInstance()
227 const deUint16 maxVertexOutputComponents = (deUint16)limits.maxVertexOutputComponents; in createInstance()
258 deUint16 fragmentComponentMaxLimits [] = { 64u, 128u, 256u }; in createLimitTests()
[all …]
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fShaderPackingFunctionTests.cpp185 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f,… in iterate()
186 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f,… in iterate()
189 const deUint16 res0 = (deUint16)(res & 0xffff); in iterate()
190 const deUint16 res1 = (deUint16)(res >> 16); in iterate()
273 const deInt16 in0 = (deInt16)(deUint16)(inputs[valNdx] & 0xffff); in iterate()
274 const deInt16 in1 = (deInt16)(deUint16)(inputs[valNdx] >> 16); in iterate()
376 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, … in iterate()
377 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, … in iterate()
380 const deUint16 res0 = (deUint16)(res & 0xffff); in iterate()
381 const deUint16 res1 = (deUint16)(res >> 16); in iterate()
[all …]
Des3fShaderBuiltinVarTests.cpp335 const deUint16 indices[] = { 0, 1, 2, 2, 1, 3 }; in iterate()
432 const deUint16 indices[] = { 0, 1, 2, 2, 1, 3 }; in iterate()
650 const deUint16 indicesCCW[] = { 0, 1, 2, 2, 1, 3 }; in iterate()
651 const deUint16 indicesCW[] = { 2, 1, 0, 3, 1, 2 }; in iterate()
729 …ence (const tcu::PixelBufferAccess& dst, const int numVertices, const deUint16* const indices, c…
953 …erence (const tcu::PixelBufferAccess& dst, const int numVertices, const deUint16* const indices, c… in renderReference()
1024 vector<deUint16> indices (m_positions.size()); in iterate()
1034 indices[ndx] = (deUint16)ndx; in iterate()
1041 vector<deUint16> indices (m_positions.size()); in iterate()
1046 indices[ndx] = (deUint16)ndx; in iterate()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderPackingFunctionTests.cpp189 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f,… in iterate()
190 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f,… in iterate()
193 const deUint16 res0 = (deUint16)(res & 0xffff); in iterate()
194 const deUint16 res1 = (deUint16)(res >> 16); in iterate()
295 const deInt16 in0 = (deInt16)(deUint16)(inputs[valNdx] & 0xffff); in iterate()
296 const deInt16 in1 = (deInt16)(deUint16)(inputs[valNdx] >> 16); in iterate()
408 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, … in iterate()
409 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, … in iterate()
412 const deUint16 res0 = (deUint16)(res & 0xffff); in iterate()
413 const deUint16 res1 = (deUint16)(res >> 16); in iterate()
[all …]
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fShaderPackingFunctionTests.cpp185 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f,… in iterate()
186 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f,… in iterate()
189 const deUint16 res0 = (deUint16)(res & 0xffff); in iterate()
190 const deUint16 res1 = (deUint16)(res >> 16); in iterate()
273 const deInt16 in0 = (deInt16)(deUint16)(inputs[valNdx] & 0xffff); in iterate()
274 const deInt16 in1 = (deInt16)(deUint16)(inputs[valNdx] >> 16); in iterate()
376 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, … in iterate()
377 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, … in iterate()
380 const deUint16 res0 = (deUint16)(res & 0xffff); in iterate()
381 const deUint16 res1 = (deUint16)(res >> 16); in iterate()
[all …]
/third_party/vk-gl-cts/framework/common/
DtcuImageIO.cpp213 static inline deUint16 readBigEndianShort (tcu::Resource* resource) in readBigEndianShort()
215 deUint16 val; in readBigEndianShort()
217 return (deUint16)(((val >> 8) & 0xFF) | ((val << 8) & 0xFF00)); in readBigEndianShort()
240 deUint16 type = readBigEndianShort(resource.get()); in loadPKM()
244 deUint16 width = readBigEndianShort(resource.get()); in loadPKM()
245 deUint16 height = readBigEndianShort(resource.get()); in loadPKM()
246 deUint16 activeWidth = readBigEndianShort(resource.get()); in loadPKM()
247 deUint16 activeHeight = readBigEndianShort(resource.get()); in loadPKM()
DtcuTexture.cpp167 return *(const deUint16*)(src + uint32ByteOffset16To32); in readUint32High16()
170 inline void writeUint32High16 (deUint8* dst, deUint16 val) in writeUint32High16()
178 *(deUint16*)(dst + uint32ByteOffset16To32) = val; in writeUint32High16()
261 inline deUint16 convertSatRteUint10 (float f) in convertSatRteUint10()
263 const deUint16 rounded = convertSatRte<deUint16>(f); in convertSatRteUint10()
264 const deUint16 maxUint10 = 0x3FFu; in convertSatRteUint10()
268 inline deUint16 convertSatRteUint12 (float f) in convertSatRteUint12()
270 const deUint16 rounded = convertSatRte<deUint16>(f); in convertSatRteUint12()
271 const deUint16 maxUint12 = 0xFFFu; in convertSatRteUint12()
286 case TextureFormat::UNORM_INT16: return (float)*((const deUint16*)value) / 65535.0f; in channelToFloat()
[all …]
DtcuCompressedTexture.cpp459 inline deUint16 extend11To16 (deUint16 src) in extend11To16()
462 return (deUint16)((src << 5) | (src >> 6)); in extend11To16()
468 return (deInt16)(-(deInt16)extend11To16((deUint16)(-src))); in extend11To16WithSign()
899 deUint16 value; in decompressEAC11Block()
902 value = (deUint16)deClamp32(baseCodeword*8 + 4 + multiplier*modifier*8, 0, 2047); in decompressEAC11Block()
904 value= (deUint16)deClamp32(baseCodeword*8 + 4 + modifier, 0, 2047); in decompressEAC11Block()
906 *((deUint16*)(dst + dstOffset)) = value; in decompressEAC11Block()
1031 …const deUint16* const srcPixel = (deUint16*)&uncompressedBlock[(y*ETC2_BLOCK_WIDTH + x)*ETC2_UNCOM… in decompressEAC_R11()
1032 deUint16* const dstPixel = (deUint16*)(dstPtr + y*dstRowPitch + x*dstPixelSize); in decompressEAC_R11()
1075 …const deUint16* const srcPixelR = (deUint16*)&uncompressedBlockR[(y*ETC2_BLOCK_WIDTH + x)*ETC2_UNC… in decompressEAC_RG11()
[all …]
DtcuSeedBuilder.cpp101 (deUint8)(((deUint16)val) & 0xFFu), in operator <<()
102 (deUint8)(((deUint16)val) >> 8), in operator <<()
109 SeedBuilder& operator<< (SeedBuilder& builder, deUint16 value) in operator <<()
111 const deUint16 val = value ^ 37323u; in operator <<()
DtcuRandomValueIterator.hpp49 template <> inline deUint16 getRandomValue<deUint16> (de::Random& rnd) { return (deUint16)rnd.getUi… in getRandomValue()
/third_party/vk-gl-cts/framework/delibs/debase/
DdeFloat16.h31 typedef deUint16 deFloat16;
78 deUint16 e = (deUint16)((x & 0x7c00u) >> 10); in deHalfIsIEEENaN()
79 deUint16 m = (x & 0x03ffu); in deHalfIsIEEENaN()
DdeFloat16Test.c42 static deFloat16 getFloat16 (deUint16 sign, deUint16 biased_exponent, deUint16 mantissa) in getFloat16()
169 …Z(getFloat32(0, exponent, mantissa)) == getFloat16(0, (deUint16) (exponent + 15 - 127), (deUint16)… in deFloat16_selfTest()
170 …Z(getFloat32(1, exponent, mantissa)) == getFloat16(1, (deUint16) (exponent + 15 - 127), (deUint16)… in deFloat16_selfTest()
/third_party/vk-gl-cts/modules/gles2/stress/
Des2sSpecialFloatTests.cpp606 …std::vector<deUint16> indices ((DE_LENGTH_OF_ARRAY(s_specialFloats) - 1) * (DE_LENGTH_OF_ARRAY(s… in iterate()
627 indices[baseNdx + 0] = (deUint16)((x+0) * DE_LENGTH_OF_ARRAY(s_specialFloats) + (y+0)); in iterate()
628 indices[baseNdx + 1] = (deUint16)((x+1) * DE_LENGTH_OF_ARRAY(s_specialFloats) + (y+1)); in iterate()
629 indices[baseNdx + 2] = (deUint16)((x+1) * DE_LENGTH_OF_ARRAY(s_specialFloats) + (y+0)); in iterate()
631 indices[baseNdx + 3] = (deUint16)((x+0) * DE_LENGTH_OF_ARRAY(s_specialFloats) + (y+0)); in iterate()
632 indices[baseNdx + 4] = (deUint16)((x+1) * DE_LENGTH_OF_ARRAY(s_specialFloats) + (y+1)); in iterate()
633 indices[baseNdx + 5] = (deUint16)((x+0) * DE_LENGTH_OF_ARRAY(s_specialFloats) + (y+1)); in iterate()
655 …gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, (glw::GLsizeiptr)(indices.size() * sizeof(deUint16)), &indi… in iterate()
827 …std::vector<deUint16> indices (DE_LENGTH_OF_ARRAY(s_specialFloats) * DE_LENGTH_OF_ARRAY(s_specia… in iterate()
846 indices[baseNdx + 0] = (deUint16)((x+0) * (DE_LENGTH_OF_ARRAY(s_specialFloats) + 1) + (y+0)); in iterate()
[all …]
/third_party/vk-gl-cts/modules/gles3/stress/
Des3sSpecialFloatTests.cpp618 …std::vector<deUint16> indices ((DE_LENGTH_OF_ARRAY(s_specialFloats) - 1) * (DE_LENGTH_OF_ARRAY(s… in iterate()
639 indices[baseNdx + 0] = (deUint16)((x+0) * DE_LENGTH_OF_ARRAY(s_specialFloats) + (y+0)); in iterate()
640 indices[baseNdx + 1] = (deUint16)((x+1) * DE_LENGTH_OF_ARRAY(s_specialFloats) + (y+1)); in iterate()
641 indices[baseNdx + 2] = (deUint16)((x+1) * DE_LENGTH_OF_ARRAY(s_specialFloats) + (y+0)); in iterate()
643 indices[baseNdx + 3] = (deUint16)((x+0) * DE_LENGTH_OF_ARRAY(s_specialFloats) + (y+0)); in iterate()
644 indices[baseNdx + 4] = (deUint16)((x+1) * DE_LENGTH_OF_ARRAY(s_specialFloats) + (y+1)); in iterate()
645 indices[baseNdx + 5] = (deUint16)((x+0) * DE_LENGTH_OF_ARRAY(s_specialFloats) + (y+1)); in iterate()
667 …gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, (glw::GLsizeiptr)(indices.size() * sizeof(deUint16)), &indi… in iterate()
842 …std::vector<deUint16> indices (DE_LENGTH_OF_ARRAY(s_specialFloats) * DE_LENGTH_OF_ARRAY(s_specia… in iterate()
861 indices[baseNdx + 0] = (deUint16)((x+0) * (DE_LENGTH_OF_ARRAY(s_specialFloats) + 1) + (y+0)); in iterate()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmUtils.cpp646 float16.push_back(deUint16(0x0000)); in getFloat16s()
647 float16.push_back(deUint16(0x8000)); in getFloat16s()
649 float16.push_back(deUint16(0x7c00)); in getFloat16s()
650 float16.push_back(deUint16(0xfc00)); in getFloat16s()
652 float16.push_back(deUint16(0x7c0f)); in getFloat16s()
653 float16.push_back(deUint16(0xfc0f)); in getFloat16s()
655 float16.push_back(deUint16(0x7cf0)); in getFloat16s()
656 float16.push_back(deUint16(0xfcf0)); in getFloat16s()
659 float16.push_back(deUint16(0x03f0)); in getFloat16s()
660 float16.push_back(deUint16(0x83f0)); in getFloat16s()
[all …]
DvktSpvAsmIntegerDotProductTests.cpp658 …addOpUDotKHRComputeTests<InBufferT, Uint16Buffer, deUint16>(testCtx, group, numElements, inputInts… in addOpUDotKHRComputeTests()
938 …addOpUDotAccSatKHRComputeTests<InBufferT, Uint16Buffer, deUint16>(testCtx, group, rnd, numElements… in addOpUDotAccSatKHRComputeTests()
1084 …group.get(), rnd, string("all"), std::numeric_limits<deUint16>::min(), std::numeric_limits<deUint1… in createOpUDotKHRComputeGroup()
1097 …numeric_limits<deInt16>::max(), std::numeric_limits<deUint16>::min(), std::numeric_limits<deUint1… in createOpSUDotKHRComputeGroup()
1130 …group.get(), rnd, string("all"), std::numeric_limits<deUint16>::min(), std::numeric_limits<deUint1… in createOpUDotAccSatKHRComputeGroup()
1131 …stCtx, group.get(), rnd, string("limits"), (deUint16)(std::numeric_limits<deUint8>::max()-40), ( in createOpUDotAccSatKHRComputeGroup()
1133 …g("limits"), (deUint32)(std::numeric_limits<deUint16>::max()-40), (deUint32)(std::numeric_limits… in createOpUDotAccSatKHRComputeGroup()
1147 …numeric_limits<deInt16>::max(), std::numeric_limits<deUint16>::min(), std::numeric_limits<deUint1… in createOpSUDotAccSatKHRComputeGroup()
1148 …t16)(std::numeric_limits<deInt8>::max()+20), (deUint16)(std::numeric_limits<deUint8>::max()-40), ( in createOpSUDotAccSatKHRComputeGroup()
1149 …t16)(std::numeric_limits<deInt8>::min()+20), (deUint16)(std::numeric_limits<deUint8>::max()-40), ( in createOpSUDotAccSatKHRComputeGroup()
[all …]
/third_party/vk-gl-cts/framework/delibs/deutil/
DdeSocket.c223 static deUint16 deHostToNetworkOrder16 (deUint16 v) in deHostToNetworkOrder16()
232 static deUint16 deNetworkToHostOrder16 (deUint16 v) in deNetworkToHostOrder16()
241 DE_STATIC_ASSERT(sizeof(((struct sockaddr_in*)DE_NULL)->sin_port) == sizeof(deUint16));
242 DE_STATIC_ASSERT(sizeof(((struct sockaddr_in6*)DE_NULL)->sin6_port) == sizeof(deUint16));
321 ((struct sockaddr_in*)bsdAddr)->sin_port = deHostToNetworkOrder16((deUint16)address->port); in deSocketAddressToBsdAddress()
327 ((struct sockaddr_in6*)bsdAddr)->sin6_port = deHostToNetworkOrder16((deUint16)address->port); in deSocketAddressToBsdAddress()
344 addr4->sin_port = deHostToNetworkOrder16((deUint16)address->port); in deSocketAddressToBsdAddress()
362 addr6->sin6_port = deHostToNetworkOrder16((deUint16)address->port); in deSocketAddressToBsdAddress()
383 deSocketAddress_setPort(address, (int)deNetworkToHostOrder16((deUint16)addr4->sin_port)); in deBsdAddressToSocketAddress()
398 deSocketAddress_setPort(address, (int)deNetworkToHostOrder16((deUint16)addr6->sin6_port)); in deBsdAddressToSocketAddress()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/
DvktTessellationCommonEdgeTests.cpp258 std::vector<deUint16> gridIndices; in test()
291 const deUint16 corners[4] = in test()
293 (deUint16)((i+0)*(gridWidth+1) + j+0), in test()
294 (deUint16)((i+0)*(gridWidth+1) + j+1), in test()
295 (deUint16)((i+1)*(gridWidth+1) + j+0), in test()
296 (deUint16)((i+1)*(gridWidth+1) + j+1) in test()
314 gridIndices.push_back((deUint16)((i+(i+m)%2)*(gridWidth+1) + j+(j+n)%2)); in test()
/third_party/vk-gl-cts/framework/opengl/
DgluDrawUtil.hpp217 inline PrimitiveList NAME (int numElements, const deUint16* indices) \
262 DECLARE_VA_CTOR(Uint16, deUint16, VTX_COMP_UNSIGNED_INT16, VTX_COMP_CONVERT_NONE);
270 DECLARE_VA_CTOR(Unorm16, deUint16, VTX_COMP_UNSIGNED_INT16, VTX_COMP_CONVERT_NORMALIZE_TO_FLOAT);
278 DECLARE_VA_CTOR(Uint16Float, deUint16, VTX_COMP_UNSIGNED_INT16, VTX_COMP_CONVERT_CAST_TO_FLOAT);
/third_party/vk-gl-cts/framework/opengl/simplereference/
DsglrContextUtil.cpp62 const deUint16 indices[] = { 0, 1, 2, 2, 1, 3 }; in drawQuadWithVaoBuffers()
102 …ctx.bufferData(GL_ELEMENT_ARRAY_BUFFER, DE_LENGTH_OF_ARRAY(indices)*sizeof(deUint16), &indices[0],… in drawQuadWithVaoBuffers()
132 const deUint16 indices[] = { 0, 1, 2, 2, 1, 3 }; in drawQuadWithClientPointers()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fBufferTestUtil.cpp339 static void computeIndices (vector<deUint16>& indices, int gridSizeX, int gridSizeY) in computeIndices()
352 indices[quadNdx*6 + 0] = (deUint16)v10; in computeIndices()
353 indices[quadNdx*6 + 1] = (deUint16)v00; in computeIndices()
354 indices[quadNdx*6 + 2] = (deUint16)v01; in computeIndices()
356 indices[quadNdx*6 + 3] = (deUint16)v10; in computeIndices()
357 indices[quadNdx*6 + 4] = (deUint16)v01; in computeIndices()
358 indices[quadNdx*6 + 5] = (deUint16)v11; in computeIndices()
421 vector<deUint16> indices; in verify()
/third_party/vk-gl-cts/modules/glshared/
DglsShaderPerformanceMeasurer.cpp72 static inline deUint16 getVtxIndex (int x, int y, int gridSizeX) in getVtxIndex()
74 return (deUint16)(y*(gridSizeX+1) + x); in getVtxIndex()
98 static void generateIndices (std::vector<deUint16>& dst, int gridSizeX, int gridSizeY) in generateIndices()
185 std::vector<deUint16> indices; in init()
190 …gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, (GLsizeiptr)(indices.size()*sizeof(deUint16)), &indices[0],… in init()

1234567