Mercurial > hg > Game > Cerium
diff TaskManager/Gpu/GpuScheduler.h @ 1447:e8ff87511f46 draft
debug GpuThreads
author | Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 23 Apr 2012 22:53:59 +0900 |
parents | 3c787a21ff10 |
children | e8db2e2d426c |
line wrap: on
line diff
--- a/TaskManager/Gpu/GpuScheduler.h Mon Apr 23 22:01:51 2012 +0900 +++ b/TaskManager/Gpu/GpuScheduler.h Mon Apr 23 22:53:59 2012 +0900 @@ -2,6 +2,7 @@ #define INCLUDED_GPU_SCHEDULER #include "Scheduler.h" +#include "FifoDmaManager.h" #ifdef __APPLE__ #include <OpenCL/opencl.h> @@ -12,10 +13,22 @@ class GpuScheduler : public Scheduler { public: void init_impl(int useRefDma); - int run(); + void run(); + + void mail_write_from_host(memaddr data) { + fifoDmaManager->mail_write_from_host(data); + } + + memaddr mail_read_from_host() { + return fifoDmaManager->mail_read_from_host(); + } + + int has_mail_from_host() { + return fifoDmaManager->has_mail_from_host(); + } private: - + FifoDmaManager *fifoDmaManager; }; #endif