Mercurial > hg > Game > Cerium
changeset 1953:2509242d5a67 draft
minor change
author | kkbk |
---|---|
date | Thu, 06 Feb 2014 18:55:05 +0900 |
parents | 7459db74ec3e |
children | 30b95f372a0d |
files | TaskManager/kernel/ppe/HTask.h TaskManager/kernel/schedule/ListData.h |
diffstat | 2 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/kernel/ppe/HTask.h Thu Feb 06 18:15:18 2014 +0900 +++ b/TaskManager/kernel/ppe/HTask.h Thu Feb 06 18:55:05 2014 +0900 @@ -53,6 +53,7 @@ struct htask_flag { unsigned no_auto_free:1; // bit 0 auto free flag (0 .. auto, 1 manual) unsigned flip:1; // use read write buffers for all + // unsigned reuse:1; // reuse GPU memory (don't load again if all ready loaded). to complex. unsigned nd_range:1; // openCL nd_range unsigned dim_count:8; // count finished cpu on multi dim execution } flag;
--- a/TaskManager/kernel/schedule/ListData.h Thu Feb 06 18:15:18 2014 +0900 +++ b/TaskManager/kernel/schedule/ListData.h Thu Feb 06 18:55:05 2014 +0900 @@ -10,11 +10,13 @@ public: BASE_NEW_DELETE(ListElement); + +#ifdef __CERIUM_CELL__ int size; -#ifdef __CERIUM_CELL__ uint32 addr; // Cell の仕様なんでどうしようもない... // PowerPC 64bit だと動かない可能性も高いんだが... #else + long size; memaddr addr; #endif }; @@ -26,13 +28,13 @@ BASE_NEW_DELETE(ListData); int length; // The number of data (4) - int size; // Total size of data (4) + long size; // Total size of data (4) long *bound; ListElement *element; void clear(void) { - length = 0; - size = 0; + length = 0; + size = 0; } /*