diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-08-25 11:31:59 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-08-25 11:31:59 -0600 |
commit | 6ba9fb9b6693904054ad4e1506ba42e324334b0a (patch) | |
tree | fdbf892bfba9558b9e263406d739cf3d1517cac0 /src/gallium/drivers/cell/ppu/cell_surface.c | |
parent | 60ac76175b6457ecc1cd8bd7a25cb79b2d529434 (diff) |
cell: asst fixes to get driver building/running again.
Note that SPU vertex transformation is disabled at this time.
Diffstat (limited to 'src/gallium/drivers/cell/ppu/cell_surface.c')
-rw-r--r-- | src/gallium/drivers/cell/ppu/cell_surface.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_surface.c b/src/gallium/drivers/cell/ppu/cell_surface.c index 2d31ad89a6..d9e3b510dc 100644 --- a/src/gallium/drivers/cell/ppu/cell_surface.c +++ b/src/gallium/drivers/cell/ppu/cell_surface.c @@ -26,11 +26,12 @@ **************************************************************************/ #include "pipe/p_defines.h" -#include "util/u_memory.h" #include "pipe/p_inlines.h" #include "pipe/p_winsys.h" -#include "util/p_tile.h" +#include "util/u_memory.h" #include "util/u_rect.h" +#include "util/u_tile.h" + #include "cell_context.h" #include "cell_surface.h" @@ -46,12 +47,12 @@ cell_surface_copy(struct pipe_context *pipe, { assert( dst->cpp == src->cpp ); - pipe_copy_rect(pipe_surface_map(dst), + pipe_copy_rect(pipe_surface_map(dst, PIPE_BUFFER_USAGE_CPU_WRITE), &dst->block, dst->stride, dstx, dsty, width, height, - pipe_surface_map(src), + pipe_surface_map(src, PIPE_BUFFER_USAGE_CPU_READ), do_flip ? -src->stride : src->stride, srcx, do_flip ? height - 1 - srcy : srcy); @@ -81,7 +82,7 @@ cell_surface_fill(struct pipe_context *pipe, unsigned width, unsigned height, unsigned value) { unsigned i, j; - void *dst_map = pipe_surface_map(dst); + void *dst_map = pipe_surface_map(dst, PIPE_BUFFER_USAGE_CPU_WRITE); assert(dst->stride > 0); |