/third_party/vk-gl-cts/framework/common/ |
D | tcuRandomValueIterator.hpp | 75 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 !=()
|
/third_party/vk-gl-cts/modules/egl/ |
D | teglMemoryStressTests.cpp | 90 de::Random m_rnd; member in deqp::egl::__anon8d01af060111::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 …]
|
D | teglMakeCurrentPerfTests.cpp | 94 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()
|
/third_party/vk-gl-cts/modules/glshared/ |
D | glsLongStressCase.cpp | 1112 , 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 …]
|
D | glsLifetimeTests.cpp | 862 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()
|
D | glsLongStressCase.hpp | 320 de::Random m_rnd; member in deqp::gls::LongStressCase
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fOcclusionQueryTests.cpp | 94 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 …]
|
D | es3fShaderPrecisionTests.cpp | 206 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 …]
|
D | es3fShaderApiTests.cpp | 228 ConstantShaderGenerator (de::Random& rnd) : m_rnd(rnd) {} in ConstantShaderGenerator() 236 de::Random m_rnd; member in deqp::gles3::Functional::__anon6fc144070111::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 …]
|
D | es3fSyncTests.cpp | 86 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()
|
D | es3fRasterizerDiscardTests.cpp | 104 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()
|
D | es3fASTCDecompressionCases.cpp | 261 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()
|
/third_party/vk-gl-cts/framework/delibs/decpp/ |
D | deRandom.hpp | 41 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() 55 deUint32 getUint32 (void) { return deRandom_getUint32(&m_rnd); } in getUint32() 56 deUint16 getUint16 (void) { return (deUint16)deRandom_getUint32(&m_rnd); } in getUint16() 57 deUint8 getUint8 (void) { return (deUint8)deRandom_getUint32(&m_rnd); } in getUint8() 76 deRandom m_rnd; member in de::Random
|
D | deRandom.cpp | 41 return m_rnd == other.m_rnd; in operator ==() 46 return m_rnd != other.m_rnd; in operator !=()
|
/third_party/vk-gl-cts/modules/gles3/stress/ |
D | es3sOcclusionQueryTests.cpp | 79 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()
|
D | es3sLongShaderTests.cpp | 187 de::Random m_rnd; member in deqp::gles3::Stress::__anone7c27f3b0111::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()
|
D | es3sSyncTests.cpp | 77 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()
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fSeparateShaderTests.cpp | 1049 Random m_rnd; member in deqp::gles31::Functional::__anona571e0e40111::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() 1340 ProgramParams pp = genProgramParams(m_rnd); in testPipelineRendering() 1347 GLuint drawSeed = m_rnd.getUint32(); in testPipelineRendering() 1371 ProgramParams pipePp = genProgramParams(m_rnd); in testCurrentProgPriority() 1372 ProgramParams programPp = genProgramParams(m_rnd); in testCurrentProgPriority() [all …]
|
D | es31fMultisampleTests.cpp | 201 de::Random m_rnd; member in deqp::gles31::Functional::__anonfee78a650111::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()
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
D | es2fShaderApiTests.cpp | 183 ConstantShaderGenerator (de::Random& rnd) : m_rnd(rnd) {} in ConstantShaderGenerator() 191 de::Random m_rnd; member in deqp::gles2::Functional::__anon65614d650111::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()
|
D | es2fMultisampleTests.cpp | 212 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()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktShaderFConvertTests.cpp | 238 : m_rnd(kRandomSeed) in InputGenerator() 239 , m_values16(getInputValues<tcu::Float16>(m_rnd)) in InputGenerator() 240 , m_values32(getInputValues<tcu::Float32>(m_rnd)) in InputGenerator() 241 , m_values64(getInputValues<tcu::Float64>(m_rnd)) in InputGenerator() 249 de::Random m_rnd; member in vkt::shaderexecutor::__anon982ee19a0111::InputGenerator
|
/third_party/vk-gl-cts/modules/gles2/performance/ |
D | es2pDrawCallBatchingTests.cpp | 105 de::Random m_rnd; member in deqp::gles2::Performance::__anon4c9808470111::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()
|
D | es2pTextureUploadTests.cpp | 98 de::Random m_rnd; member in deqp::gles2::Performance::TextureUploadCase 114 , m_rnd (deStringHash(name)) in TextureUploadCase()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/ |
D | vktSpvAsmTypeTests.cpp | 801 de::Random m_rnd; member in vkt::SpirVAssembly::SpvAsmTypeTests 888 , m_rnd (deStringHash(name)) in SpvAsmTypeTests() 1167 bitOffset = static_cast<T>(m_rnd.getUint32() & (m_typeSize - 1u)); in combine() 1168 bitCount = static_cast<T>(m_rnd.getUint32() & (m_typeSize - 1u)); in combine() 1280 bitOffset = static_cast<T>(m_rnd.getUint32() & (m_typeSize - 1u)); in combine() 1281 bitCount = static_cast<T>(m_rnd.getUint32() & (m_typeSize - 1u)); in combine() 2557 input.push_back(static_cast<deInt8>(m_rnd.getUint8())); in getDataset() 2608 input.push_back(static_cast<deInt16>(m_rnd.getUint16())); in getDataset() 2659 input.push_back(static_cast<deInt32>(m_rnd.getUint32())); in getDataset() 2710 input.push_back(static_cast<deInt64>(m_rnd.getUint64())); in getDataset() [all …]
|