comparison TaskManager/Test/simple_render/spe/Load_Texture.cpp @ 102:62679f4cae18

tag:first_render_with_spe fix
author gongo
date Mon, 03 Mar 2008 17:15:28 +0900
parents 9f8b53beef7e
children 5c194c71eca8
comparison
equal deleted inserted replaced
101:c31499d11926 102:62679f4cae18
19 int 19 int
20 LoadTexture::run(void *rbuf , void *wbuf) 20 LoadTexture::run(void *rbuf , void *wbuf)
21 { 21 {
22 //int rgb; 22 //int rgb;
23 __debug("[LoadTexture:%s]\n", __FUNCTION__); 23 __debug("[LoadTexture:%s]\n", __FUNCTION__);
24 printf("%x\n",(int)rbuf); 24 __debug("%x\n",(int)rbuf);
25 printf("run\n"); 25 __debug("run\n");
26 26
27 return 0; 27 return 0;
28 } 28 }
29 29
30 // byteperpixel = 3 width = 128 dma_height= 32 30 // byteperpixel = 3 width = 128 dma_height= 32
40 connector->dma_load(readbuf,task->in_addr,MAX_LOAD_SIZE,DMA_READ); 40 connector->dma_load(readbuf,task->in_addr,MAX_LOAD_SIZE,DMA_READ);
41 connector->dma_load((void*)((int)readbuf + MAX_LOAD_SIZE), 41 connector->dma_load((void*)((int)readbuf + MAX_LOAD_SIZE),
42 task->in_addr + MAX_LOAD_SIZE, MAX_LOAD_SIZE,DMA_READ + 1); 42 task->in_addr + MAX_LOAD_SIZE, MAX_LOAD_SIZE,DMA_READ + 1);
43 connector->dma_load((void*)((int)readbuf + MAX_LOAD_SIZE*2) , 43 connector->dma_load((void*)((int)readbuf + MAX_LOAD_SIZE*2) ,
44 task->in_addr + MAX_LOAD_SIZE * 2,MAX_LOAD_SIZE,DMA_READ + 2); 44 task->in_addr + MAX_LOAD_SIZE * 2,MAX_LOAD_SIZE,DMA_READ + 2);
45 printf("readbuf: %x\n", (uint32)readbuf); 45 __debug("readbuf: %x\n", (uint32)readbuf);
46 printf("readbuf2:%x\n", (int)readbuf + MAX_LOAD_SIZE); 46 __debug("readbuf2:%x\n", (int)readbuf + MAX_LOAD_SIZE);
47 printf("readbuf3:%x\n", (int)readbuf + MAX_LOAD_SIZE*2); 47 __debug("readbuf3:%x\n", (int)readbuf + MAX_LOAD_SIZE*2);
48 #else 48 #else
49 mfc_list_element buf[USE_ARRAY]; 49 mfc_list_element buf[USE_ARRAY];
50 for(int i = 0; i < USE_ARRAY; i++) { 50 for(int i = 0; i < USE_ARRAY; i++) {
51 buf[i].notify = 0; 51 buf[i].notify = 0;
52 buf[i].reserved = 0; 52 buf[i].reserved = 0;
53 buf[i].size = MAX_LOAD_SIZE; 53 buf[i].size = MAX_LOAD_SIZE;
54 buf[i].eal = task->in_addr + i*MAX_LOAD_SIZE; 54 buf[i].eal = task->in_addr + i*MAX_LOAD_SIZE;
55 } 55 }
56 printf("set_load_info\n"); 56 __debug("set_load_info\n");
57 connector->dma_load(readbuf, (unsigned int)buf, MAX_LOAD_SIZE, DMA_READ); 57 connector->dma_load(readbuf, (unsigned int)buf, MAX_LOAD_SIZE, DMA_READ);
58 printf("dma_load_finish\n"); 58 __debug("dma_load_finish\n");
59 59
60 #endif 60 #endif
61 } 61 }
62 62
63 void 63 void