Mercurial > hg > Game > Cerium
diff TaskManager/Test/test_render/spe/DrawSpan.cpp @ 188:fe854a6ee9e2 draft
メモりリーク箇所発見:TaskManager/Test/test_render/ChangeLog参照
author | gongo@localhost.localdomain |
---|---|
date | Thu, 08 Jan 2009 15:34:19 +0900 |
parents | 06cdf8baa989 |
children | 6694da357750 |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/spe/DrawSpan.cpp Thu Jan 08 13:46:57 2009 +0900 +++ b/TaskManager/Test/test_render/spe/DrawSpan.cpp Thu Jan 08 15:34:19 2009 +0900 @@ -108,7 +108,7 @@ smanager->dma_load(tile->pixel, (uint32)addr, sizeof(uint32)*TEXTURE_BLOCK_SIZE, TEX_LOAD); - smanager->dma_wait(TEX_LOAD); + //smanager->dma_wait(TEX_LOAD); } } @@ -119,7 +119,7 @@ uint32 end = (uint32)max_addr; uint32 length = end-start; uint32 diff = sizeof(uint32)*TEXTURE_BLOCK_SIZE; - uint32 max_tile = 8; + uint32 max_tile = 16; for (uint32 i = 0, j = 0; i <= length && j < max_tile; i += diff, j++) { set_rgb((uint32*)(start + i)); @@ -171,7 +171,6 @@ SpanPackPtr curr = (SpanPackPtr)smanager->allocate(sizeof(SpanPack)); memcpy(curr, spack, sizeof(SpanPack)); renew_task->add_param((int)curr); - renew_task->add_param(cur_span_x); /** @@ -283,12 +282,12 @@ */ if (!isAvailableTile(tex_addr)) { spack->info.start = t; - set_rgb(tex_addr); - //set_rgbs(tex_addr, - //getTile(span->tex_width-1, tex_ypos, - //span->tex_width, span->tex_addr)); - //reboot(spack, 0); - //goto FINISH; + //set_rgb(tex_addr); + set_rgbs(tex_addr, + getTile(span->tex_width-1, tex_ypos, + span->tex_width, span->tex_addr)); + reboot(spack, 0); + goto FINISH; } rgb = get_rgb(tex_localx, tex_localy, tex_addr);