Lines Matching refs:threadIndex
96 int threadIndex; member
744 int threadIndex = static_cast<Parameters*>(parameters)->threadIndex; in threadFunction() local
752 renderer->threadLoop(threadIndex); in threadFunction()
755 void Renderer::threadLoop(int threadIndex) in threadLoop() argument
759 taskLoop(threadIndex); in threadLoop()
761 suspend[threadIndex]->signal(); in threadLoop()
762 resume[threadIndex]->wait(); in threadLoop()
766 void Renderer::taskLoop(int threadIndex) in taskLoop() argument
768 while(task[threadIndex].type != Task::SUSPEND) in taskLoop()
770 scheduleTask(threadIndex); in taskLoop()
771 executeTask(threadIndex); in taskLoop()
859 void Renderer::scheduleTask(int threadIndex) in scheduleTask() argument
872 task[threadIndex] = taskQueue[(qHead - qSize) & TASK_COUNT_BITS]; in scheduleTask()
895 task[threadIndex].type = Task::SUSPEND; in scheduleTask()
903 void Renderer::executeTask(int threadIndex) in executeTask() argument
909 switch(task[threadIndex].type) in executeTask()
913 int unit = task[threadIndex].primitiveUnit; in executeTask()
920 processPrimitiveVertices(unit, input, count, draw->count, threadIndex); in executeTask()
924 vertexTime[threadIndex] += time - startTick; in executeTask()
939 setupTime[threadIndex] += Timer::ticks() - startTick; in executeTask()
945 int unit = task[threadIndex].primitiveUnit; in executeTask()
950 int cluster = task[threadIndex].pixelCluster; in executeTask()
959 finishRendering(task[threadIndex]); in executeTask()
962 pixelTime[threadIndex] += Timer::ticks() - startTick; in executeTask()
2056 parameters.threadIndex = i; in initializeThreads()