Lines Matching refs:threadIndex
96 int threadIndex; member
745 int threadIndex = static_cast<Parameters*>(parameters)->threadIndex; in threadFunction() local
753 renderer->threadLoop(threadIndex); in threadFunction()
756 void Renderer::threadLoop(int threadIndex) in threadLoop() argument
760 taskLoop(threadIndex); in threadLoop()
762 suspend[threadIndex]->signal(); in threadLoop()
763 resume[threadIndex]->wait(); in threadLoop()
767 void Renderer::taskLoop(int threadIndex) in taskLoop() argument
769 while(task[threadIndex].type != Task::SUSPEND) in taskLoop()
771 scheduleTask(threadIndex); in taskLoop()
772 executeTask(threadIndex); in taskLoop()
860 void Renderer::scheduleTask(int threadIndex) in scheduleTask() argument
873 task[threadIndex] = taskQueue[(qHead - qSize) & TASK_COUNT_BITS]; in scheduleTask()
896 task[threadIndex].type = Task::SUSPEND; in scheduleTask()
904 void Renderer::executeTask(int threadIndex) in executeTask() argument
910 switch(task[threadIndex].type) in executeTask()
914 int unit = task[threadIndex].primitiveUnit; in executeTask()
921 processPrimitiveVertices(unit, input, count, draw->count, threadIndex); in executeTask()
925 vertexTime[threadIndex] += time - startTick; in executeTask()
940 setupTime[threadIndex] += Timer::ticks() - startTick; in executeTask()
946 int unit = task[threadIndex].primitiveUnit; in executeTask()
951 int cluster = task[threadIndex].pixelCluster; in executeTask()
960 finishRendering(task[threadIndex]); in executeTask()
963 pixelTime[threadIndex] += Timer::ticks() - startTick; in executeTask()
2154 parameters.threadIndex = i; in initializeThreads()