Home
last modified time | relevance | path

Searched refs:m_rnd (Results 1 – 25 of 26) sorted by relevance

12

/external/deqp/framework/common/
DtcuRandomValueIterator.hpp75 de::Random m_rnd; member in tcu::RandomValueIterator
82 : m_rnd (seed) in RandomValueIterator()
84 , m_curVal (numLeft > 0 ? getRandomValue<T>(m_rnd) : T()) in RandomValueIterator()
94 m_curVal = getRandomValue<T>(m_rnd); in operator ++()
110 …(m_numLeft == 0 && other.m_numLeft == 0) || (m_numLeft == other.m_numLeft && m_rnd == other.m_rnd); in operator ==()
116 …(m_numLeft == 0 && other.m_numLeft == 0) && (m_numLeft != other.m_numLeft || m_rnd != other.m_rnd); in operator !=()
/external/deqp/framework/delibs/decpp/
DdeRandom.hpp41 Random (deUint32 seed) { deRandom_init(&m_rnd, seed); } in Random()
44 float getFloat (void) { return deRandom_getFloat(&m_rnd); } in getFloat()
45 double getDouble (void) { return deRandom_getDouble(&m_rnd); } in getDouble()
46 bool getBool (void) { return deRandom_getBool(&m_rnd) == DE_TRUE; } in getBool()
53 deUint32 getUint32 (void) { return deRandom_getUint32(&m_rnd); } in getUint32()
54 deUint16 getUint16 (void) { return (deUint16)deRandom_getUint32(&m_rnd); } in getUint16()
55 deUint8 getUint8 (void) { return (deUint8)deRandom_getUint32(&m_rnd); } in getUint8()
74 deRandom m_rnd; member in de::Random
DdeRandom.cpp41 return m_rnd == other.m_rnd; in operator ==()
46 return m_rnd != other.m_rnd; in operator !=()
/external/deqp/modules/egl/
DteglMemoryStressTests.cpp90 de::Random m_rnd; member in deqp::egl::__anon97a1abaf0111::MemoryAllocator
110 , m_rnd (seed) in MemoryAllocator()
159 ObjectType type = m_rnd.choose<ObjectType>(types.begin(), types.end()); in allocateUntilFailure()
200 const EGLint width = m_rnd.getInt(m_minWidth, m_maxWidth); in allocatePBuffer()
201 const EGLint height = m_rnd.getInt(m_minHeight, m_maxHeight); in allocatePBuffer()
218 EGLContext context = m_rnd.choose<EGLContext>(m_contexts.begin(), m_contexts.end()); in allocatePBuffer()
219 const float red = m_rnd.getFloat(); in allocatePBuffer()
220 const float green = m_rnd.getFloat(); in allocatePBuffer()
221 const float blue = m_rnd.getFloat(); in allocatePBuffer()
222 const float alpha = m_rnd.getFloat(); in allocatePBuffer()
[all …]
DteglMakeCurrentPerfTests.cpp94 de::Random m_rnd; member in deqp::egl::MakeCurrentPerfCase
160 , m_rnd (deStringHash(name)) in MakeCurrentPerfCase()
520 EGLContext context = m_contexts[m_rnd.getUint32() % m_contexts.size()]; in iterate()
521 EGLSurface surface = m_surfaces[m_rnd.getUint32() % m_surfaces.size()]; in iterate()
/external/deqp/modules/glshared/
DglsLongStressCase.cpp1112 , m_rnd (deStringHash(getName()) ^ testCtx.getCommandLine().getBaseSeed()) in LongStressCase()
1179 m_rnd.shuffle(m_vertexIndices.begin(), m_vertexIndices.end()); in init()
1260 const bool useClientMemoryIndexData = m_rnd.getFloat() < m_probabilities.clientMemoryIndexData; in iterate()
1261 const bool useDrawArrays = m_rnd.getFloat() < m_probabilities.useDrawArrays; in iterate()
1262 …const bool separateAttributeBuffers = m_rnd.getFloat() < m_probabilities.separateAttributeBuff… in iterate()
1263 const int progContextNdx = m_rnd.getInt(0, (int)m_programContexts.size()-1); in iterate()
1284 if (!hadProgram || m_rnd.getFloat() < m_probabilities.rebuildProgram) in iterate()
1310 if (!hadTexture || m_rnd.getFloat() < m_probabilities.reuploadTexture) in iterate()
1314 …exture.getApproxMemUsageDiff(spec.width, spec.height, spec.internalFormat, spec.useMipmap), m_rnd); in iterate()
1316 if (!hadTexture || m_rnd.getFloat() < m_probabilities.reuploadWithTexImage) in iterate()
[all …]
DglsLifetimeTests.cpp862 Random m_rnd; member in deqp::gls::LifetimeTests::details::TestBase
869 , m_rnd (deStringHash(name)) in TestBase()
876 m_rnd = Random(deStringHash(getName())); in init()
981 const GLuint id = m_rnd.getUint32(); in testBindNoGen()
1154 const GLuint refSeed = m_rnd.getUint32(); in iterate()
1155 const GLuint newSeed = m_rnd.getUint32(); in iterate()
1235 const GLuint refSeed = m_rnd.getUint32(); in iterate()
1236 const GLuint newSeed = m_rnd.getUint32(); in iterate()
DglsLongStressCase.hpp320 de::Random m_rnd; member in deqp::gls::LongStressCase
/external/deqp/modules/gles3/functional/
Des3fOcclusionQueryTests.cpp94 de::Random m_rnd; member in deqp::gles3::Functional::OcclusionQueryCase
110 , m_rnd (deStringHash(name)) in OcclusionQueryCase()
229 …OccluderType type = occOptions[m_rnd.getInt(0, (int)occOptions.size()-1)]; // Choosing a random oc… in iterate()
237 …generateVertices(occluderVertices, 2.0f, 2.0f, m_numOccludersPerDraw, 3, m_rnd, m_occluderSize, 0.… in iterate()
251 int scissorBoxX = m_rnd.getInt(-DEPTH_CLEAR_OFFSET, targetW); in iterate()
252 int scissorBoxY = m_rnd.getInt(-DEPTH_CLEAR_OFFSET, targetH); in iterate()
253 int scissorBoxW = m_rnd.getInt( DEPTH_CLEAR_OFFSET, targetW+DEPTH_CLEAR_OFFSET); in iterate()
254 int scissorBoxH = m_rnd.getInt( DEPTH_CLEAR_OFFSET, targetH+DEPTH_CLEAR_OFFSET); in iterate()
277 …generateVertices(occluderVertices, 2.0f, 2.0f, m_numOccludersPerDraw, 3, m_rnd, m_occluderSize, 0.… in iterate()
294 int scissorBoxX = m_rnd.getInt(-STENCIL_CLEAR_OFFSET, targetW); in iterate()
[all …]
Des3fShaderPrecisionTests.cpp206 de::Random m_rnd; member in deqp::gles3::Functional::ShaderFloatPrecisionCase
225 , m_rnd (deStringHash(name)) in ShaderFloatPrecisionCase()
365 const float in0 = m_rnd.getFloat(m_rangeA.x(), m_rangeA.y()); in iterate()
366 const float in1 = m_rnd.getFloat(m_rangeB.x(), m_rangeB.y()); in iterate()
458 de::Random m_rnd; member in deqp::gles3::Functional::ShaderIntPrecisionCase
478 , m_rnd (deStringHash(name)) in ShaderIntPrecisionCase()
581 …int in0 = deSignExtendTo32(((isMaxRangeA ? (int)m_rnd.getUint32() : m_rnd.getInt(m_rangeA.x(), … in iterate()
582 …int in1 = deSignExtendTo32(((isMaxRangeB ? (int)m_rnd.getUint32() : m_rnd.getInt(m_rangeB.x(), … in iterate()
652 de::Random m_rnd; member in deqp::gles3::Functional::ShaderUintPrecisionCase
672 , m_rnd (deStringHash(name)) in ShaderUintPrecisionCase()
[all …]
Des3fShaderApiTests.cpp228 ConstantShaderGenerator (de::Random& rnd) : m_rnd(rnd) {} in ConstantShaderGenerator()
236 de::Random m_rnd; member in deqp::gles3::Functional::__anond9bfe7f00111::ConstantShaderGenerator
243 const float value = m_rnd.getFloat(0.0f, 1.0f); in next()
689 , m_rnd (deStringHash(getName()) ^ 0x4fb2337d) in ShaderSourceSplitCase()
735 m_rnd.shuffle(indices.begin(), indices.end()); in insertRandomNullTermStrings()
744 sources.lengths[ndx] = m_rnd.getInt(-10, -1); in insertRandomNullTermStrings()
806 de::Random m_rnd; member in deqp::gles3::Functional::ShaderSourceSplitCase
831 de::Random m_rnd; member in deqp::gles3::Functional::ProgramStateCase
837 , m_rnd (deStringHash(name) ^ 0x713de0ca) in ProgramStateCase()
889 ConstantShaderGenerator sourceGen (m_rnd); in test()
[all …]
Des3fSyncTests.cpp86 de::Random m_rnd; member in deqp::gles3::Functional::FenceSyncCase
100 , m_rnd (deStringHash(name)) in FenceSyncCase()
192 generateVertices (vertices, m_numPrimitives, m_rnd); in iterate()
Des3fRasterizerDiscardTests.cpp104 de::Random m_rnd; member in deqp::gles3::Functional::RasterizerDiscardCase
118 , m_rnd (deStringHash(name)) in RasterizerDiscardCase()
307 generateVertices (vertices, m_numPrimitives, m_rnd, m_drawMode); in iterate()
Des3fASTCDecompressionCases.cpp261 de::Random m_rnd; member in deqp::gles3::Functional::ASTCDecompressionCaseInternal::ASTCRenderer2D
280 , m_rnd (randomSeed) in ASTCRenderer2D()
333 …ewport viewport (renderCtx.getRenderTarget(), textureWidth, textureHeight, m_rnd.getUint32()); in render()
Des3fMultisampleTests.cpp249 de::Random m_rnd; member in deqp::gles3::Functional::MultisampleCase
270 , m_rnd (deStringHash(name)) in MultisampleCase()
396 m_viewportX = m_rnd.getInt(0, m_renderWidth - m_viewportSize); in randomizeViewport()
397 m_viewportY = m_rnd.getInt(0, m_renderHeight - m_viewportSize); in randomizeViewport()
/external/deqp/modules/gles3/stress/
Des3sOcclusionQueryTests.cpp79 de::Random m_rnd; member in deqp::gles3::Stress::OcclusionQueryStressCase
94 , m_rnd (deStringHash(name)) in OcclusionQueryStressCase()
176 vertices[4*i ] = m_rnd.getFloat(-1.0f, 1.0f); in iterate()
177 vertices[4*i + 1] = m_rnd.getFloat(-1.0f, 1.0f); in iterate()
178 vertices[4*i + 2] = m_rnd.getFloat(0.0f, 1.0f); in iterate()
188 int vtxNdx = m_rnd.getInt(0, NUM_GENERATED_VERTICES-1); in iterate()
199 int vtxNdx = m_rnd.getInt(0, NUM_GENERATED_VERTICES-1); in iterate()
Des3sLongShaderTests.cpp187 de::Random m_rnd; member in deqp::gles3::Stress::__anonae8483c40111::LongShaderGenerator
211 : m_rnd (rnd) in LongShaderGenerator()
249 m_rnd.choose(m_varNames.begin(), m_varNames.end(), inNames.begin(), (int)numVars); in generateSource()
269 return m_rnd.choose<std::string>(m_varNames.begin(), m_varNames.end()); in getRandomVariableName()
288 const std::string op = std::string("") + m_rnd.choose<char>(operators.begin(), operators.end()); in makeExpression()
323 const float varValue = m_rnd.getFloat(); in beginBlock()
363 de::Random m_rnd; member in deqp::gles3::Stress::LongShaderCompileStressCase
371 , m_rnd (deStringHash(name) ^ 0xac9c91d) in LongShaderCompileStressCase()
372 , m_gen (m_rnd, caseSpec) in LongShaderCompileStressCase()
Des3sSyncTests.cpp77 de::Random m_rnd; member in deqp::gles3::Stress::FenceSyncCase
88 , m_rnd (deStringHash(name)) in FenceSyncCase()
180 generateVertices (vertices, m_numSyncs, m_rnd); in iterate()
200 m_rnd.shuffle(m_syncObjects.begin(), m_syncObjects.end()); in iterate()
/external/deqp/modules/gles31/functional/
Des31fSeparateShaderTests.cpp1049 Random m_rnd; member in deqp::gles31::Functional::__anon1825e4ad0111::SeparateShaderTest
1082 , m_rnd (paramsSeed(params)) in SeparateShaderTest()
1084 , m_varyings (genVaryingInterface(params.varyings, m_rnd)) in SeparateShaderTest()
1195 const deUint32 initVtxSeed = m_params.switchVtx ? m_rnd.getUint32() : pp.vtxSeed; in createPipeline()
1198 const deUint32 initFrgSeed = m_params.switchFrg ? m_rnd.getUint32() : pp.frgSeed; in createPipeline()
1316 Random rnd (seed > 0 ? seed : m_rnd.getUint32()); in drawSurface()
1329 ProgramParams pp = genProgramParams(m_rnd); in testPipelineRendering()
1336 GLuint drawSeed = m_rnd.getUint32(); in testPipelineRendering()
1360 ProgramParams pipePp = genProgramParams(m_rnd); in testCurrentProgPriority()
1361 ProgramParams programPp = genProgramParams(m_rnd); in testCurrentProgPriority()
[all …]
Des31fMultisampleTests.cpp201 de::Random m_rnd; member in deqp::gles31::Functional::__anoncdf7face0111::DefaultFBOMultisampleCase
216 , m_rnd (deStringHash(name)) in DefaultFBOMultisampleCase()
374 m_viewportX = m_rnd.getInt(0, m_context.getRenderTarget().getWidth() - m_viewportSize); in randomizeViewport()
375 m_viewportY = m_rnd.getInt(0, m_context.getRenderTarget().getHeight() - m_viewportSize); in randomizeViewport()
/external/deqp/modules/gles2/functional/
Des2fShaderApiTests.cpp183 ConstantShaderGenerator (de::Random& rnd) : m_rnd(rnd) {} in ConstantShaderGenerator()
191 de::Random m_rnd; member in deqp::gles2::Functional::__anoncf5ff14e0111::ConstantShaderGenerator
198 const float value = m_rnd.getFloat(0.0f, 1.0f); in next()
632 , m_rnd (deStringHash(getName()) ^ 0x4fb2337d) in ShaderSourceSplitCase()
675 m_rnd.shuffle(indices.begin(), indices.end()); in insertRandomNullTermStrings()
684 sources.lengths[ndx] = m_rnd.getInt(-10, -1); in insertRandomNullTermStrings()
746 de::Random m_rnd; member in deqp::gles2::Functional::ShaderSourceSplitCase
771 de::Random m_rnd; member in deqp::gles2::Functional::ProgramStateCase
777 , m_rnd (deStringHash(name) ^ 0x713de0ca) in ProgramStateCase()
829 ConstantShaderGenerator sourceGen (m_rnd); in test()
Des2fMultisampleTests.cpp212 de::Random m_rnd; member in deqp::gles2::Functional::MultisampleCase
224 , m_rnd (deStringHash(name)) in MultisampleCase()
307 m_viewportX = m_rnd.getInt(0, m_context.getRenderTarget().getWidth() - m_viewportSize); in randomizeViewport()
308 m_viewportY = m_rnd.getInt(0, m_context.getRenderTarget().getHeight() - m_viewportSize); in randomizeViewport()
/external/deqp/modules/gles2/performance/
Des2pDrawCallBatchingTests.cpp105 de::Random m_rnd; member in deqp::gles2::Performance::__anon15cc85300111::DrawCallBatchingTest
153 , m_rnd (deStringHash(name)) in DrawCallBatchingTest()
301 data.push_back((deInt8)m_rnd.getUint32()); in createAttributeDatas()
341 data.push_back((deInt8)m_rnd.getUint32()); in createAttributeDatas()
Des2pTextureUploadTests.cpp98 de::Random m_rnd; member in deqp::gles2::Performance::TextureUploadCase
114 , m_rnd (deStringHash(name)) in TextureUploadCase()
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmTypeTests.cpp761 de::Random m_rnd; member in vkt::SpirVAssembly::SpvAsmTypeTests
842 , m_rnd (deStringHash(name)) in SpvAsmTypeTests()
1111 bitOffset = static_cast<T>(m_rnd.getUint32() & (m_typeSize - 1u)); in combine()
1112 bitCount = static_cast<T>(m_rnd.getUint32() & (m_typeSize - 1u)); in combine()
1218 bitOffset = static_cast<T>(m_rnd.getUint32() & (m_typeSize - 1u)); in combine()
1219 bitCount = static_cast<T>(m_rnd.getUint32() & (m_typeSize - 1u)); in combine()
2330 input.push_back(static_cast<deInt8>(m_rnd.getUint8())); in getDataset()
2381 input.push_back(static_cast<deInt16>(m_rnd.getUint16())); in getDataset()
2432 input.push_back(static_cast<deInt32>(m_rnd.getUint32())); in getDataset()
2483 input.push_back(static_cast<deInt64>(m_rnd.getUint64())); in getDataset()
[all …]

12