comparison Renderer/Engine/task/CreatePolygon.cc @ 602:1733f3cbfa28

64bit mode try... not worked.
author e075740@nw0740.st.ie.u-ryukyu.ac.jp
date Fri, 06 Nov 2009 21:20:26 +0900
parents 735f76483bb2
children 42c94f85c779
comparison
equal deleted inserted replaced
601:8782cc4171b7 602:1733f3cbfa28
61 pp->init(); 61 pp->init();
62 send_pp->init(); 62 send_pp->init();
63 63
64 do { 64 do {
65 if (sgp->next != NULL) { 65 if (sgp->next != NULL) {
66 smanager->dma_load(next_sgp, (uint32)sgp->next, 66 smanager->dma_load(next_sgp, (long)sgp->next,
67 sizeof(SceneGraphPack), SG_PACK_LOAD); 67 sizeof(SceneGraphPack), SG_PACK_LOAD);
68 } else { 68 } else {
69 next_sgp = NULL; 69 next_sgp = NULL;
70 } 70 }
71 71
72 for (int i = 0; i < sgp->info.size; i++) { 72 for (int i = 0; i < sgp->info.size; i++) {
73 node = &sgp->node[i]; 73 node = &sgp->node[i];
74 74
75 do { 75 do {
76 if (node->next != NULL) { 76 if (node->next != NULL) {
77 smanager->dma_load(next_node, (uint32)node->next, 77 smanager->dma_load(next_node, (long)node->next,
78 sizeof(SceneGraphNode), SG_NODE_LOAD); 78 sizeof(SceneGraphNode), SG_NODE_LOAD);
79 } else { 79 } else {
80 next_node = NULL; 80 next_node = NULL;
81 } 81 }
82 82
94 tmp_pp = pp; 94 tmp_pp = pp;
95 pp = send_pp; 95 pp = send_pp;
96 send_pp = tmp_pp; 96 send_pp = tmp_pp;
97 97
98 smanager->dma_wait(PP_STORE); 98 smanager->dma_wait(PP_STORE);
99 smanager->dma_store(send_pp, (uint32)pp_addr, 99 smanager->dma_store(send_pp, (long)pp_addr,
100 sizeof(PolygonPack), PP_STORE); 100 sizeof(PolygonPack), PP_STORE);
101 101
102 pp_addr = next; 102 pp_addr = next;
103 103
104 smanager->dma_wait(PP_LOAD); 104 smanager->dma_wait(PP_LOAD);
105 smanager->dma_load(pp, (uint32)pp_addr, 105 smanager->dma_load(pp, (long)pp_addr,
106 sizeof(PolygonPack), PP_LOAD); 106 sizeof(PolygonPack), PP_LOAD);
107 smanager->dma_wait(PP_LOAD); 107 smanager->dma_wait(PP_LOAD);
108 pp->init(); 108 pp->init();
109 109
110 } 110 }
173 sgp = next_sgp; 173 sgp = next_sgp;
174 next_sgp = tmp_sgp; 174 next_sgp = tmp_sgp;
175 } while (sgp); 175 } while (sgp);
176 176
177 smanager->dma_wait(PP_STORE); 177 smanager->dma_wait(PP_STORE);
178 smanager->dma_store(pp, (uint32)pp_addr, 178 smanager->dma_store(pp, (long)pp_addr,
179 sizeof(PolygonPack), PP_STORE); 179 sizeof(PolygonPack), PP_STORE);
180 smanager->dma_wait(PP_STORE); 180 smanager->dma_wait(PP_STORE);
181 181
182 free(pp); 182 free(pp);
183 free(send_pp); 183 free(send_pp);