Mercurial > hg > Game > Cerium
diff TaskManager/Test/test_render/spe/DrawSpan.cpp @ 192:6694da357750 draft
add example/renew_task
author | gongo@localhost.localdomain |
---|---|
date | Tue, 13 Jan 2009 10:41:05 +0900 |
parents | fe854a6ee9e2 |
children | 1ff24ca2f016 |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/spe/DrawSpan.cpp Mon Jan 12 10:32:25 2009 +0900 +++ b/TaskManager/Test/test_render/spe/DrawSpan.cpp Tue Jan 13 10:41:05 2009 +0900 @@ -1,5 +1,6 @@ #include <stdlib.h> #include <string.h> +#include <spu_mfcio.h> #include "DrawSpan.h" #include "polygon_pack.h" #include "texture.h" @@ -173,6 +174,9 @@ renew_task->add_param((int)curr); renew_task->add_param(cur_span_x); + fprintf(stderr, "[%p] start %u\n", + curr, spu_readch(SPU_RdDec)); + /** * 再起動したタスクを待つ */ @@ -282,12 +286,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);