Home
last modified time | relevance | path

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

1234

/external/deqp/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 …]
/external/deqp/modules/gles3/functional/
Des3fShaderPackingFunctionTests.cpp209 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f,… in iterate()
210 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f,… in iterate()
213 const deUint16 res0 = (deUint16)(res & 0xffff); in iterate()
214 const deUint16 res1 = (deUint16)(res >> 16); in iterate()
297 const deInt16 in0 = (deInt16)(deUint16)(inputs[valNdx] & 0xffff); in iterate()
298 const deInt16 in1 = (deInt16)(deUint16)(inputs[valNdx] >> 16); in iterate()
400 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, … in iterate()
401 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, … in iterate()
404 const deUint16 res0 = (deUint16)(res & 0xffff); in iterate()
405 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()
708 …ence (const tcu::PixelBufferAccess& dst, const int numVertices, const deUint16* const indices, c…
932 …erence (const tcu::PixelBufferAccess& dst, const int numVertices, const deUint16* const indices, c… in renderReference()
1000 vector<deUint16> indices (m_positions.size()); in iterate()
1010 indices[ndx] = (deUint16)ndx; in iterate()
1017 vector<deUint16> indices (m_positions.size()); in iterate()
1022 indices[ndx] = (deUint16)ndx; in iterate()
[all …]
Des3fInstancedRenderingTests.cpp130 …vector<deUint16> m_gridIndices; // \note Only used if m_function is FUNCTION_DRAW_ELEMENTS_INS…
339 m_gridIndices.push_back((deUint16)ndx00); in init()
340 m_gridIndices.push_back((deUint16)ndx10); in init()
341 m_gridIndices.push_back((deUint16)ndx01); in init()
344 m_gridIndices.push_back((deUint16)ndx11); in init()
345 m_gridIndices.push_back((deUint16)ndx01); in init()
346 m_gridIndices.push_back((deUint16)ndx10); in init()
/external/deqp/modules/gles31/functional/
Des31fShaderPackingFunctionTests.cpp213 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f,… in iterate()
214 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f,… in iterate()
217 const deUint16 res0 = (deUint16)(res & 0xffff); in iterate()
218 const deUint16 res1 = (deUint16)(res >> 16); in iterate()
301 const deInt16 in0 = (deInt16)(deUint16)(inputs[valNdx] & 0xffff); in iterate()
302 const deInt16 in1 = (deInt16)(deUint16)(inputs[valNdx] >> 16); in iterate()
404 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, … in iterate()
405 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, … in iterate()
408 const deUint16 res0 = (deUint16)(res & 0xffff); in iterate()
409 const deUint16 res1 = (deUint16)(res >> 16); in iterate()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderPackingFunctionTests.cpp226 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f,… in iterate()
227 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f,… in iterate()
230 const deUint16 res0 = (deUint16)(res & 0xffff); in iterate()
231 const deUint16 res1 = (deUint16)(res >> 16); in iterate()
333 const deInt16 in0 = (deInt16)(deUint16)(inputs[valNdx] & 0xffff); in iterate()
334 const deInt16 in1 = (deInt16)(deUint16)(inputs[valNdx] >> 16); in iterate()
451 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, … in iterate()
452 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, … in iterate()
455 const deUint16 res0 = (deUint16)(res & 0xffff); in iterate()
456 const deUint16 res1 = (deUint16)(res >> 16); in iterate()
[all …]
/external/deqp/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()
DtcuCompressedTexture.cpp358 inline deUint16 extend11To16 (deUint16 src) in extend11To16()
361 return (deUint16)((src << 5) | (src >> 6)); in extend11To16()
367 return (deInt16)(-(deInt16)extend11To16((deUint16)(-src))); in extend11To16WithSign()
798 deUint16 value; in decompressEAC11Block()
801 value = (deUint16)deClamp32(baseCodeword*8 + 4 + multiplier*modifier*8, 0, 2047); in decompressEAC11Block()
803 value= (deUint16)deClamp32(baseCodeword*8 + 4 + modifier, 0, 2047); in decompressEAC11Block()
805 *((deUint16*)(dst + dstOffset)) = value; in decompressEAC11Block()
930 …const deUint16* const srcPixel = (deUint16*)&uncompressedBlock[(y*ETC2_BLOCK_WIDTH + x)*ETC2_UNCOM… in decompressEAC_R11()
931 deUint16* const dstPixel = (deUint16*)(dstPtr + y*dstRowPitch + x*dstPixelSize); in decompressEAC_R11()
974 …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()
DtcuTexture.cpp166 return *(const deUint16*)(src + uint32ByteOffset16To32); in readUint32High16()
169 inline void writeUint32High16 (deUint8* dst, deUint16 val) in writeUint32High16()
177 *(deUint16*)(dst + uint32ByteOffset16To32) = val; in writeUint32High16()
335 case TextureFormat::UNORM_INT16: return (float)*((const deUint16*)value) / 65535.0f; in channelToFloat()
342 case TextureFormat::UNSIGNED_INT16: return (float)*((const deUint16*)value); in channelToFloat()
365 case TextureFormat::UNORM_INT16: return (int)*((const deUint16*)value); in channelToInt()
372 case TextureFormat::UNSIGNED_INT16: return (int)*((const deUint16*)value); in channelToInt()
395 …case TextureFormat::UNORM_INT16: *((deUint16*)dst) = convertSatRte<deUint16> (src * 65535.0f); … in floatToChannel()
402 …case TextureFormat::UNSIGNED_INT16: *((deUint16*)dst) = convertSatRte<deUint16> (src); break; in floatToChannel()
451 case TextureFormat::UNORM_INT16: *((deUint16*)dst) = convertSat<deUint16> (src); break; in intToChannel()
[all …]
DtcuAstcUtil.cpp1439 DE_STATIC_ASSERT((de::meta::TypesSame<deFloat16, deUint16>::Value)); in setTexelColors()
1710 DE_STATIC_ASSERT((de::meta::TypesSame<deFloat16, deUint16>::Value));
1712 deUint16 r;
1713 deUint16 g;
1714 deUint16 b;
1715 deUint16 a;
1718 …VoidExtentParams (bool isHDR_, deUint16 r_, deUint16 g_, deUint16 b_, deUint16 a_) : isHDR(isHDR_)… in VoidExtentParams()
2315 …const deUint16 r = isVoidExtentHDR ? deFloat32To16(rnd.getFloat(0.0f, 1.0f)) : (deUint16)rnd.g… in generateRandomBlock()
2316 …const deUint16 g = isVoidExtentHDR ? deFloat32To16(rnd.getFloat(0.0f, 1.0f)) : (deUint16)rnd.g… in generateRandomBlock()
2317 …const deUint16 b = isVoidExtentHDR ? deFloat32To16(rnd.getFloat(0.0f, 1.0f)) : (deUint16)rnd.g… in generateRandomBlock()
[all …]
/external/deqp/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 …]
/external/deqp/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 …]
/external/deqp/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()
/external/deqp/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);
/external/deqp/framework/delibs/debase/
DdeInt32.h437 DE_INLINE deUint16 deReverseBytes16 (deUint16 v) in deReverseBytes16()
439 return (deUint16)((v << 8) | (v >> 8)); in deReverseBytes16()
528 DE_INLINE deUint32 deUint16Hash (deUint16 v) { return deInt32Hash((deInt32)v); } in deUint16Hash()
533 DE_INLINE deBool deUint16Equal (deUint16 a, deUint16 b) { return (a == b); } in deUint16Equal()
/external/deqp/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()
/external/deqp/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()
/external/deqp/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()
183 std::vector<deUint16> indices; in init()
188 …gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, (GLsizeiptr)(indices.size()*sizeof(deUint16)), &indices[0],… in init()
DglsRandomShaderCase.cpp213 m_indices[quadNdx*6+0] = (deUint16)(quadX + quadY*(m_gridWidth+1)); in init()
214 m_indices[quadNdx*6+1] = (deUint16)(quadX + (quadY+1)*(m_gridWidth+1)); in init()
215 m_indices[quadNdx*6+2] = (deUint16)(quadX + quadY*(m_gridWidth+1) + 1); in init()
216 m_indices[quadNdx*6+3] = (deUint16)(m_indices[quadNdx*6+2]); in init()
217 m_indices[quadNdx*6+4] = (deUint16)(m_indices[quadNdx*6+1]); in init()
218 m_indices[quadNdx*6+5] = (deUint16)(quadX + (quadY+1)*(m_gridWidth+1) + 1); in init()
DglsBufferTestUtil.cpp500 static void computeIndices (vector<deUint16>& indices, int gridSizeX, int gridSizeY) in computeIndices()
513 indices[quadNdx*6 + 0] = (deUint16)v10; in computeIndices()
514 indices[quadNdx*6 + 1] = (deUint16)v00; in computeIndices()
515 indices[quadNdx*6 + 2] = (deUint16)v01; in computeIndices()
517 indices[quadNdx*6 + 3] = (deUint16)v10; in computeIndices()
518 indices[quadNdx*6 + 4] = (deUint16)v01; in computeIndices()
519 indices[quadNdx*6 + 5] = (deUint16)v11; in computeIndices()
582 vector<deUint16> indices; in verify()
/external/deqp/modules/internal/
DditSeedBuilderTests.cpp142 …addChild(new SeedBuilderTest<deUint16>(m_testCtx, 0, 78413740u, "uint16_zero", "Seed from uint16… in init()
143 …addChild(new SeedBuilderTest<deUint16>(m_testCtx, 1, 3068621u, "uint16_one", "Seed from uint16 … in init()
144 …addChild(new SeedBuilderTest<deUint16>(m_testCtx, 65535, 120448140u, "uint16_max", "Seed from uint… in init()
DditBuildInfoTests.cpp154 const deUint16 multiByte = (deUint16)0x0102; in iterate()

1234