Mercurial > hg > Game > Cerium
comparison TaskManager/Gpu/GpuScheduler.cc @ 1457:55f92ed3f244 draft
create GpuRunTest
author | Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 09 Jun 2012 21:13:44 +0900 |
parents | 2b886dcc0e7d |
children | d79256b51d7f |
comparison
equal
deleted
inserted
replaced
1456:5533106cc437 | 1457:55f92ed3f244 |
---|---|
1 #include "GpuScheduler.h" | 1 #include "GpuScheduler.h" |
2 #include "ReferencedDmaManager.h" | 2 #include "ReferencedDmaManager.h" |
3 #include "SchedTask.h" | |
4 #include "GpuFunc.h" | |
3 #include "GpuThreads.h" | 5 #include "GpuThreads.h" |
4 #include "stdio.h" | 6 #include "stdio.h" |
5 #include <fcntl.h> | 7 #include <fcntl.h> |
6 #include <sys/stat.h> | 8 #include <sys/stat.h> |
9 SchedDefineTask1(SchedRun,schedrun); | |
7 | 10 |
8 void | 11 void |
9 GpuScheduler::init_impl(int useRefDma) | 12 GpuScheduler::init_impl(int useRefDma) |
10 { | 13 { |
11 fifoDmaManager = new ReferencedDmaManager(); | 14 fifoDmaManager = new ReferencedDmaManager(); |
12 connector = fifoDmaManager; | 15 connector = fifoDmaManager; |
16 } | |
17 | |
18 static int | |
19 schedrun(SchedTask *smanager, void *rbuf, void *wbuf){ | |
20 return 0 ; | |
13 } | 21 } |
14 | 22 |
15 void | 23 void |
16 GpuScheduler::run() | 24 GpuScheduler::run() |
17 { | 25 { |
97 task_list[cmd].run = NULL; | 105 task_list[cmd].run = NULL; |
98 task_list[cmd].load = NULL; | 106 task_list[cmd].load = NULL; |
99 task_list[cmd].wait = NULL; | 107 task_list[cmd].wait = NULL; |
100 task_list[cmd].name = functionname; | 108 task_list[cmd].name = functionname; |
101 task_list[cmd].kernel = kernel; | 109 task_list[cmd].kernel = kernel; |
102 GpuScheduler::run(); | |
103 | 110 |
104 } | 111 } |