Changeset 712 for soft/giet_vm/applications/raycast
- Timestamp:
- Oct 7, 2015, 11:56:33 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/raycast/raycast.c
r708 r712 18 18 pthread_t trdid[1024]; // thread identifiers array 19 19 Game game; // Game state 20 unsigned int fbuf_x_size; // FBF width 21 unsigned int fbuf_y_size; // FBF height 20 22 21 23 // Textures … … 52 54 unsigned int i, j, n; // indexes for loops 53 55 56 // get private TTY 54 57 giet_tty_alloc(0); 55 58 … … 63 66 giet_pthread_assert( (h<=16) , "[RAYCAST ERROR] check hardware config" ); 64 67 giet_pthread_assert( (p<= 4) , "[RAYCAST ERROR] check hardware config" ); 68 69 // check frame buffer availability 70 giet_fbf_size( &fbuf_x_size , &fbuf_y_size ); 71 giet_pthread_assert( ((fbuf_x_size) && (fbuf_y_size)) , 72 "[RAYCAST ERROR] no frame buffer available" ); 65 73 66 74 // compute total number of threads … … 83 91 84 92 // Initialize frame buffer and start Chained buffer DMA 93 giet_fbf_alloc(); 85 94 giet_fbf_cma_alloc(); 86 95 giet_fbf_cma_init_buf(buf[0], buf[1], sts[0], sts[1]); … … 127 136 unsigned int slice; 128 137 while ( dispRenderSlice( &slice ) ); 129 /* 130 unsigned int again; 131 do 132 { 133 again = dispRenderSlice( &slice ); 134 } 135 while ( again ); 136 */ 138 137 139 // Wait last slice completion 138 140 while (slice_count < FBUF_X_SIZE) giet_tty_printf(" ");
Note: See TracChangeset
for help on using the changeset viewer.