diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-01-14 11:11:08 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-01-14 11:11:08 -0700 |
commit | eff70f67c558c90c5419b43729a6dc8a9a8c47ec (patch) | |
tree | be4ecce8d8ce341ddbf99ec73386115aa99f2f49 /src/mesa/pipe/cell/ppu/cell_spu.c | |
parent | 2014e0bacbd2661bf98d084120a109b1c0bf0df2 (diff) |
Cell: update surface map code to match recent changes in pipe_surface struct
Diffstat (limited to 'src/mesa/pipe/cell/ppu/cell_spu.c')
-rw-r--r-- | src/mesa/pipe/cell/ppu/cell_spu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/pipe/cell/ppu/cell_spu.c b/src/mesa/pipe/cell/ppu/cell_spu.c index 88a620e669..77ddd9ccbf 100644 --- a/src/mesa/pipe/cell/ppu/cell_spu.c +++ b/src/mesa/pipe/cell/ppu/cell_spu.c @@ -168,8 +168,8 @@ test_spus(struct cell_context *cell) sleep(2); for (i = 0; i < cell->num_spus; i++) { - cell_global.command[i].fb.color_start = csurf->map; - cell_global.command[i].fb.depth_start = zsurf ? zsurf->map : NULL; + cell_global.command[i].fb.color_start = cell->cbuf_map[0]; + cell_global.command[i].fb.depth_start = cell->zbuf_map; cell_global.command[i].fb.width = csurf->width; cell_global.command[i].fb.height = csurf->height; cell_global.command[i].fb.color_format = PIPE_FORMAT_A8R8G8B8_UNORM; @@ -186,7 +186,7 @@ test_spus(struct cell_context *cell) finish_all(cell->num_spus); { - uint *b = (uint*) csurf->map; + uint *b = (uint*) cell->cbuf_map[0]; printf("PPU: Clear results: 0x%x 0x%x 0x%x 0x%x\n", b[0], b[1000], b[2000], b[3000]); } |