diff options
author | Vinson Lee <[email protected]> | 2010-08-21 14:29:50 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-08-21 14:29:50 -0700 |
commit | 489c787b80064b590016eecf2b8157760b0bc8a2 (patch) | |
tree | da4110dfcb3c4149563cba8c5d8e6f8f94f2e122 /src/gallium/drivers/nvfx/nvfx_buffer.c | |
parent | 11d27871a79fb7ffcf0e139a8c04d90991969023 (diff) |
nvfx: Fix SCons build.
Move declarations before code.
Fix void pointer arithmetic.
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_buffer.c')
-rw-r--r-- | src/gallium/drivers/nvfx/nvfx_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_buffer.c b/src/gallium/drivers/nvfx/nvfx_buffer.c index 89bb8570efd..041099e0e56 100644 --- a/src/gallium/drivers/nvfx/nvfx_buffer.c +++ b/src/gallium/drivers/nvfx/nvfx_buffer.c @@ -89,7 +89,7 @@ void nvfx_buffer_upload(struct nvfx_buffer* buffer) // TODO: may want to use a temporary in some cases nouveau_bo_map(buffer->base.bo, NOUVEAU_BO_WR | (buffer->dirty_unsynchronized ? NOUVEAU_BO_NOSYNC : 0)); - memcpy(buffer->base.bo->map + buffer->dirty_begin, buffer->data + buffer->dirty_begin, dirty); + memcpy((uint8_t*)buffer->base.bo->map + buffer->dirty_begin, buffer->data + buffer->dirty_begin, dirty); nouveau_bo_unmap(buffer->base.bo); buffer->dirty_begin = buffer->dirty_end = 0; } |