Mercurial > hg > Game > Cerium
diff TaskManager/Test/test_render/task/DrawSpan.cpp @ 387:b6fce69839b5 draft
no compile error but not worked.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 06 Aug 2009 22:40:52 +0900 |
parents | da7b1e5b8449 |
children | 492e60453124 |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/task/DrawSpan.cpp Thu Aug 06 19:31:51 2009 +0900 +++ b/TaskManager/Test/test_render/task/DrawSpan.cpp Thu Aug 06 22:40:52 2009 +0900 @@ -168,6 +168,7 @@ return data[(TEXTURE_SPLIT_PIXEL)*ty+tx]; } +#if 0 /** * DrawSpan の再起動 (DrawSpanRenew 生成) * @@ -214,6 +215,7 @@ // next_spack は free() するので wait する smanager->dma_wait(SPAN_PACK_LOAD); } +#endif void DrawSpan::writebuffer(unsigned int display, int buf_width, int height, @@ -310,9 +312,8 @@ tex_localy = tex_ypos % TEXTURE_SPLIT_PIXEL; #if USE_MEMHASH - TilePtr tile = smanager->get_segement(tex_addr, - sizeof(uint32)*TEXTURE_BLOCK_SIZE); - smanager->wait_segement(tileid); + TilePtr tile = smanager->get_segment(tex_addr,tileList); + smanager->wait_segment(tile); #else TilePtr tile; if (!(tile = isAvailableTile(tex_addr))) { @@ -422,9 +423,8 @@ tex_localx = tex_xpos % TEXTURE_SPLIT_PIXEL; tex_localy = tex_ypos % TEXTURE_SPLIT_PIXEL; #if USE_MEMHASH - TilePtr tile = smanager->get_segement(tex_addr, - sizeof(uint32)*TEXTURE_BLOCK_SIZE); - smanager->wait_segement(tile); + TilePtr tile = smanager->get_segment(tex_addr,tileList); + smanager->wait_segment(tile); #else TilePtr tile; if (!(tile = isAvailableTile(tex_addr))) {