changeset 1053:f18b2932fdf5 draft

mege
author root@localhost.localdomain
date Fri, 10 Dec 2010 09:47:01 +0900
parents a0ea7d9b6faf
children ab16fc9a6570
files Renderer/Engine/SceneGraph.cc TaskManager/Cell/spe/CellDmaManager.cc
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Renderer/Engine/SceneGraph.cc	Fri Dec 10 23:09:12 2010 +0900
+++ b/Renderer/Engine/SceneGraph.cc	Fri Dec 10 09:47:01 2010 +0900
@@ -72,8 +72,14 @@
     if (tex_w==0 && tex_h==0) {
 	// non texture case
 	uint32 pattern = SDL_BYTEORDER == SDL_LIL_ENDIAN? 0x00ffffff : 0xffffff00; /* OpenGL RGBA masks */
-	if (white[0]!=pattern)  // dumb!
+	if (white[0]!=pattern)  { // dumb!
+#if 1
+            for(int i=0;i<256;i++)
+               white[i] = pattern;
+#else
 	    memset_pattern4(white,&pattern,256);
+#endif
+        }
 	return white;
     }
 
--- a/TaskManager/Cell/spe/CellDmaManager.cc	Fri Dec 10 23:09:12 2010 +0900
+++ b/TaskManager/Cell/spe/CellDmaManager.cc	Fri Dec 10 09:47:01 2010 +0900
@@ -213,7 +213,7 @@
 
     wait_time = spu_readch(SPU_RdDec); 
     global_busy_time += busy_time - wait_time;
-
+    printf("busy_time = %d, wait_time = %d\n", busy_time, wait_time);
     spu_writech(SPU_WrDec, 0xffffffff);
 
     // Measurement of mainMem_alloc
@@ -225,6 +225,7 @@
 CellDmaManager::do_end_dmawait_profile(unsigned long long *counter)
 {
     wait_time = spu_readch(SPU_RdDec);
+    //printf("wait_time = %d", wait_time);
     *counter += 0xffffffff - wait_time;
     busy_time = wait_time;