Home
last modified time | relevance | path

Searched refs:deRandom_getUint32 (Results 1 - 25 of 34) sorted by relevance

12

/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fPrerequisiteTests.cpp133 r = (int)(deRandom_getUint32(&rnd) & 0xFF); in iterate()
134 g = (int)(deRandom_getUint32(&rnd) & 0xFF); in iterate()
135 b = (int)(deRandom_getUint32(&rnd) & 0xFF); in iterate()
136 a = (int)(deRandom_getUint32(&rnd) & 0xFF); in iterate()
212 x = deRandom_getUint32(&rnd) % (targetWidth - 1); in iterate()
213 y = deRandom_getUint32(&rnd) % (targetHeight - 1); in iterate()
214 imageWidth = 1 + (deRandom_getUint32(&rnd) % (targetWidth - x - 1)); in iterate()
215 imageHeight = 1 + (deRandom_getUint32(&rnd) % (targetHeight - y - 1)); in iterate()
223 int r = (int)(deRandom_getUint32(&rnd) & 0xFF); in iterate()
224 int g = (int)(deRandom_getUint32( in iterate()
[all...]
H A Des3fFboRenderTest.cpp438 int x = deRandom_getUint32(&rnd) % xMax; in iterate()
439 int y = deRandom_getUint32(&rnd) % yMax; in iterate()
/third_party/vk-gl-cts/modules/gles2/functional/
H A Des2fPrerequisiteTests.cpp133 r = (int)(deRandom_getUint32(&rnd) & 0xFF); in iterate()
134 g = (int)(deRandom_getUint32(&rnd) & 0xFF); in iterate()
135 b = (int)(deRandom_getUint32(&rnd) & 0xFF); in iterate()
136 a = (int)(deRandom_getUint32(&rnd) & 0xFF); in iterate()
212 x = deRandom_getUint32(&rnd) % (targetWidth - 1); in iterate()
213 y = deRandom_getUint32(&rnd) % (targetHeight - 1); in iterate()
214 imageWidth = 1 + (deRandom_getUint32(&rnd) % (targetWidth - x - 1)); in iterate()
215 imageHeight = 1 + (deRandom_getUint32(&rnd) % (targetHeight - y - 1)); in iterate()
223 int r = (int)(deRandom_getUint32(&rnd) & 0xFF); in iterate()
224 int g = (int)(deRandom_getUint32( in iterate()
[all...]
H A Des2fFboRenderTest.cpp574 int x = deRandom_getUint32(&rnd) % xMax; in iterate()
575 int y = deRandom_getUint32(&rnd) % yMax; in iterate()
683 int cX = (int)(deRandom_getUint32(&rnd) & 0x7fffffff) % width; in render()
684 int cY = (int)(deRandom_getUint32(&rnd) & 0x7fffffff) % height; in render()
685 int cWidth = (int)(deRandom_getUint32(&rnd) & 0x7fffffff) % (width-cX); in render()
686 int cHeight = (int)(deRandom_getUint32(&rnd) & 0x7fffffff) % (height-cY); in render()
687 Vec4 color = RGBA(deRandom_getUint32(&rnd)).toVec(); in render()
/third_party/vk-gl-cts/framework/delibs/debase/
H A DdeRandom.c49 deUint32 deRandom_getUint32 (deRandom* rnd) in deRandom_getUint32() function
69 deUint64 x = deRandom_getUint32(rnd); in deRandom_getUint64()
70 return x << 32 | deRandom_getUint32(rnd); in deRandom_getUint64()
80 return (float)(deRandom_getUint32(rnd) & 0xFFFFFFFu) / (float)(0xFFFFFFFu+1); in deRandom_getFloat()
102 deUint32 val = deRandom_getUint32(rnd); in deRandom_getBool()
H A DdeFloat16Test.c101 deUint32 mantissa = deRandom_getUint32(&rnd); in deFloat16_selfTest()
119 deUint32 exponent = deRandom_getUint32(&rnd); in deFloat16_selfTest()
120 deUint32 mantissa = deRandom_getUint32(&rnd); in deFloat16_selfTest()
163 deUint32 exponent = deRandom_getUint32(&rnd); in deFloat16_selfTest()
164 deUint32 mantissa = deRandom_getUint32(&rnd); in deFloat16_selfTest()
180 deUint32 exponent = deRandom_getUint32(&rnd); in deFloat16_selfTest()
181 deUint32 mantissa = deRandom_getUint32(&rnd); in deFloat16_selfTest()
223 deUint32 mantissa = deRandom_getUint32(&rnd); in deFloat16_selfTest()
240 deUint32 exponent = deRandom_getUint32(&rnd); in deFloat16_selfTest()
241 deUint32 mantissa = deRandom_getUint32( in deFloat16_selfTest()
[all...]
H A DdeRandom.h48 deUint32 deRandom_getUint32 (deRandom* rnd);
H A DdeMathTest.c98 testSingleInt32ToFloat((deInt32)deRandom_getUint32(&rnd)); in testInt32ToFloat()
H A DdeInt32Test.c149 deUint32 val = (deRandom_getUint32(&rnd) & ((1u<<numBits)-1)) | (1u<<numBits); in deInt32_selfTest()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/reconvergence/
H A DvktReconvergenceTests.cpp363 deUint32 maskIdx = deRandom_getUint32(&rnd) % numMasks; in genIf()
368 deUint32 localIndexCmp = deRandom_getUint32(&rnd) % 128; in genIf()
382 deUint32 randElse = (deRandom_getUint32(&rnd) % 100); in genIf()
407 deUint32 iterCount = (deRandom_getUint32(&rnd) % 5) + 1; in genForUnif()
422 deUint32 iterCount = (deRandom_getUint32(&rnd) % 5) + 1; in genDoWhileUnif()
508 if ((deRandom_getUint32(&rnd) % 100) < 10) in genBreak()
530 if ((deRandom_getUint32(&rnd) % 100) < 10) in genContinue()
553 if ((deRandom_getUint32(&rnd) % 100) < 10) in genElect()
557 if (callNesting > 0 && (deRandom_getUint32(&rnd) % 100) < 30) in genElect()
572 deUint32 r = deRandom_getUint32( in genReturn()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/reconvergence/
H A DvktReconvergenceTests.cpp363 deUint32 maskIdx = deRandom_getUint32(&rnd) % numMasks; in genIf()
368 deUint32 localIndexCmp = deRandom_getUint32(&rnd) % 128; in genIf()
382 deUint32 randElse = (deRandom_getUint32(&rnd) % 100); in genIf()
407 deUint32 iterCount = (deRandom_getUint32(&rnd) % 5) + 1; in genForUnif()
422 deUint32 iterCount = (deRandom_getUint32(&rnd) % 5) + 1; in genDoWhileUnif()
508 if ((deRandom_getUint32(&rnd) % 100) < 10) in genBreak()
530 if ((deRandom_getUint32(&rnd) % 100) < 10) in genContinue()
553 if ((deRandom_getUint32(&rnd) % 100) < 10) in genElect()
557 if (callNesting > 0 && (deRandom_getUint32(&rnd) % 100) < 30) in genElect()
572 deUint32 r = deRandom_getUint32( in genReturn()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
H A DvktApiMemoryRequirementInvarianceTests.cpp95 m_size = (deRandom_getUint32(&random) % 1024) + 7; in BufferAllocator()
97 m_usage = 1 << (deRandom_getUint32(&random) % 9); in BufferAllocator()
99 m_memoryType = memoryTypes[deRandom_getUint32(&random) % memoryTypes.size()]; in BufferAllocator()
179 m_colorFormat = (VkFormat)linearformats[deRandom_getUint32(&random) % linearformats.size()]; in ImageAllocator()
181 m_colorFormat = (VkFormat)optimalformats[deRandom_getUint32(&random) % optimalformats.size()]; in ImageAllocator()
187 m_size = tcu::IVec2((deRandom_getUint32(&random) % 16 + 3) & ~(widthAlignment - 1), in ImageAllocator()
188 (deRandom_getUint32(&random) % 16 + 3) & ~(heightAlignment - 1)); in ImageAllocator()
190 m_memoryType = memoryTypes[deRandom_getUint32(&random) % memoryTypes.size()]; in ImageAllocator()
646 int a = deRandom_getUint32(&m_random) % testCycles; in iterate()
647 int b = deRandom_getUint32( in iterate()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/
H A DvktApiMemoryRequirementInvarianceTests.cpp95 m_size = (deRandom_getUint32(&random) % 1024) + 7; in BufferAllocator()
97 m_usage = 1 << (deRandom_getUint32(&random) % 9); in BufferAllocator()
99 m_memoryType = memoryTypes[deRandom_getUint32(&random) % memoryTypes.size()]; in BufferAllocator()
173 m_colorFormat = (VkFormat)linearformats[deRandom_getUint32(&random) % linearformats.size()]; in ImageAllocator()
175 m_colorFormat = (VkFormat)optimalformats[deRandom_getUint32(&random) % optimalformats.size()]; in ImageAllocator()
181 m_size = tcu::IVec2((deRandom_getUint32(&random) % 16 + 3) & ~(widthAlignment - 1), in ImageAllocator()
182 (deRandom_getUint32(&random) % 16 + 3) & ~(heightAlignment - 1)); in ImageAllocator()
184 m_memoryType = memoryTypes[deRandom_getUint32(&random) % memoryTypes.size()]; in ImageAllocator()
614 int a = deRandom_getUint32(&m_random) % testCycles; in iterate()
615 int b = deRandom_getUint32( in iterate()
[all...]
/third_party/vk-gl-cts/framework/delibs/decpp/
H A DdeRandom.hpp55 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()
/third_party/vk-gl-cts/framework/delibs/deutil/
H A DdeTimerTest.c57 int interval = minInterval + (int)(deRandom_getUint32(&rnd) % (deUint32)(maxInterval-minInterval+1)); in deTimer_selfTest()
/third_party/vk-gl-cts/modules/glshared/
H A DglsVertexArrayTests.cpp237 return GLValue::Short::create((min == max ? min : (deInt16)(min + (deRandom_getUint32(&rnd) % (max.to<int>() - min.to<int>()))))); in getRandom()
246 return GLValue::Ushort::create((min == max ? min : (deUint16)(min + (deRandom_getUint32(&rnd) % (max.to<int>() - min.to<int>()))))); in getRandom()
255 return GLValue::Byte::create((min == max ? min : (deInt8)(min + (deRandom_getUint32(&rnd) % (max.to<int>() - min.to<int>()))))); in getRandom()
264 return GLValue::Ubyte::create((min == max ? min : (deUint8)(min + (deRandom_getUint32(&rnd) % (max.to<int>() - min.to<int>()))))); in getRandom()
273 return GLValue::Fixed::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<deUint32>() - min.to<deUint32>())))); in getRandom()
294 return GLValue::Int::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<deUint32>() - min.to<deUint32>())))); in getRandom()
303 return GLValue::Uint::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<deUint32>() - min.to<deUint32>())))); in getRandom()
1436 deUint32 x1 = min + deRandom_getUint32(&rnd) % (max - min); in createQuadsPacked()
1437 deUint32 x2 = min + deRandom_getUint32(&rnd) % (max - x1); in createQuadsPacked()
1439 deUint32 y1 = min + deRandom_getUint32( in createQuadsPacked()
[all...]
H A DglsDrawTest.cpp712 return GLValue::Short::create((min == max ? min : (deInt16)(min + (deRandom_getUint32(&rnd) % (max.to<int>() - min.to<int>()))))); in getRandom()
721 return GLValue::Ushort::create((min == max ? min : (deUint16)(min + (deRandom_getUint32(&rnd) % (max.to<int>() - min.to<int>()))))); in getRandom()
730 return GLValue::Byte::create((min == max ? min : (deInt8)(min + (deRandom_getUint32(&rnd) % (max.to<int>() - min.to<int>()))))); in getRandom()
739 return GLValue::Ubyte::create((min == max ? min : (deUint8)(min + (deRandom_getUint32(&rnd) % (max.to<int>() - min.to<int>()))))); in getRandom()
748 return GLValue::Fixed::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<deUint32>() - min.to<deUint32>())))); in getRandom()
769 return GLValue::Int::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<deUint32>() - min.to<deUint32>())))); in getRandom()
778 return GLValue::Uint::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<deUint32>() - min.to<deUint32>())))); in getRandom()
1656 const deUint32 x = deRandom_getUint32(&rnd) % limit10; in generatePackedArray()
1657 const deUint32 y = deRandom_getUint32(&rnd) % limit10; in generatePackedArray()
1658 const deUint32 z = deRandom_getUint32( in generatePackedArray()
[all...]
/third_party/vk-gl-cts/framework/delibs/depool/
H A DdeMemPool.c177 if ((deRandom_getUint32(&parent->failRandom) & 16383) <= 15) in createPoolInternal()
210 deRandom_init(&pool->failRandom, parent ? deRandom_getUint32(&parent->failRandom) : 0x1234abcd); in createPoolInternal()
433 if ((deRandom_getUint32(&pool->failRandom) & 16383) <= 15) in deMemPool_allocInternal()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/binding_model/
H A DvktBindingDescriptorUpdateTests.cpp1131 if (deRandom_getUint32(&m_random) % 10 == 0) in iterate()
1132 numWrites = deRandom_getUint32(&m_random) % 20 + 1; in iterate()
1141 bool rare = (deRandom_getUint32(&m_random) % 100u >= (firstHalf ? 98u : 80u)); in iterate()
1153 descWrite.offset = (deRandom_getUint32(&m_random) % kNumOffsets) * 256u; in iterate()
1155 descWrite.bufferId = deRandom_getUint32(&m_random) % kNumBuffers; in iterate()
1161 deRandom_getUint32(&m_random) % 10u, writes}; in iterate()
1194 descWrite.offset = (deRandom_getUint32(&m_random) % kNumOffsets) * 256u; in iterate()
1195 descWrite.bufferId = deRandom_getUint32(&m_random) % kNumBuffers; in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/binding_model/
H A DvktBindingDescriptorUpdateTests.cpp1131 if (deRandom_getUint32(&m_random) % 10 == 0) in iterate()
1132 numWrites = deRandom_getUint32(&m_random) % 20 + 1; in iterate()
1141 bool rare = (deRandom_getUint32(&m_random) % 100u >= (firstHalf ? 98u : 80u)); in iterate()
1153 descWrite.offset = (deRandom_getUint32(&m_random) % kNumOffsets) * 256u; in iterate()
1155 descWrite.bufferId = deRandom_getUint32(&m_random) % kNumBuffers; in iterate()
1161 deRandom_getUint32(&m_random) % 10u, writes}; in iterate()
1194 descWrite.offset = (deRandom_getUint32(&m_random) % kNumOffsets) * 256u; in iterate()
1195 descWrite.bufferId = deRandom_getUint32(&m_random) % kNumBuffers; in iterate()
/third_party/vk-gl-cts/execserver/tools/
H A DxsTest.cpp989 ((deUint32*)data)[ndx] = deRandom_getUint32(&rnd);
998 int blockSize = 1 + deRandom_getUint32(&rnd) % (dataSize-curPos);
1016 int numToRead = 1 + deRandom_getUint32(&rnd) % deMin(dataSize-curPos, DE_LENGTH_OF_ARRAY(block));
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/compute/
H A DvktComputeCooperativeMatrixTests.cpp1249 setDataFloat(ptrs[i], dataTypes[i], j, ((float)(deRandom_getUint32(&rnd) & 0xff) - 64.0f)/2.0f); in iterate()
1251 setDataFloat(ptrs[i], dataTypes[i], j, ((float)(deRandom_getUint32(&rnd) & 0xf) - 4.0f)/2.0f); in iterate()
1264 value = (deRandom_getUint32(&rnd) & 0xff) - 128; in iterate()
1269 value = deRandom_getUint32(&rnd) & mask; in iterate()
1279 deUint32 value = (deRandom_getUint32(&rnd) & 0xff) - 128; in iterate()
H A DvktComputeZeroInitializeWorkgroupMemoryTests.cpp541 cases[i].numVariables = (deRandom_getUint32(&rnd) % 16) + 1; in AddTypeTests()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/compute/
H A DvktComputeCooperativeMatrixTests.cpp937 setDataFloat(ptrs[i], dataTypes[i], j, ((float)(deRandom_getUint32(&rnd) & 0xff) - 64.0f)/2.0f); in iterate()
939 setDataFloat(ptrs[i], dataTypes[i], j, ((float)(deRandom_getUint32(&rnd) & 0xf) - 4.0f)/2.0f); in iterate()
942 setDataInt(ptrs[i], dataTypes[i], j, (deRandom_getUint32(&rnd) & 0xff) - 128); in iterate()
/third_party/vk-gl-cts/framework/delibs/dethread/
H A DdeThreadTest.c386 val = deRandom_getUint32(&random); in producerThread()

Completed in 36 milliseconds

12