summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/vl/vl_idct.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-04-07 19:24:22 +0200
committerChristian König <[email protected]>2011-04-07 19:24:22 +0200
commit9d2e630cd02362bfa8f090640a55cf2dea9d64b3 (patch)
tree52ef3c1604d6500d7eec7517a76625da08544a9a /src/gallium/auxiliary/vl/vl_idct.c
parent2c21d28e8315ff65cb6f47fda46cbd65d67fb4e7 (diff)
[g3dvl] move mapping/unmapping and uploading of blocks out of idct code
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_idct.c')
-rw-r--r--src/gallium/auxiliary/vl/vl_idct.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/gallium/auxiliary/vl/vl_idct.c b/src/gallium/auxiliary/vl/vl_idct.c
index c92659bc5b0..a7b8a18dec3 100644
--- a/src/gallium/auxiliary/vl/vl_idct.c
+++ b/src/gallium/auxiliary/vl/vl_idct.c
@@ -703,60 +703,6 @@ vl_idct_cleanup_buffer(struct vl_idct *idct, struct vl_idct_buffer *buffer)
}
void
-vl_idct_map_buffers(struct vl_idct *idct, struct vl_idct_buffer *buffer)
-{
- struct pipe_resource *tex;
-
- assert(idct && buffer);
-
- tex = buffer->sampler_views.individual.source->texture;
-
- struct pipe_box rect =
- {
- 0, 0, 0,
- tex->width0,
- tex->height0,
- 1
- };
-
- buffer->tex_transfer = idct->pipe->get_transfer
- (
- idct->pipe, tex,
- 0, PIPE_TRANSFER_WRITE | PIPE_TRANSFER_DISCARD,
- &rect
- );
-
- buffer->texels = idct->pipe->transfer_map(idct->pipe, buffer->tex_transfer);
-}
-
-void
-vl_idct_add_block(struct vl_idct_buffer *buffer, unsigned x, unsigned y, short *block)
-{
- unsigned tex_pitch;
- short *texels;
-
- unsigned i;
-
- assert(buffer);
- assert(block);
-
- tex_pitch = buffer->tex_transfer->stride / sizeof(short);
- texels = buffer->texels + y * tex_pitch * BLOCK_HEIGHT + x * BLOCK_WIDTH;
-
- for (i = 0; i < BLOCK_HEIGHT; ++i)
- memcpy(texels + i * tex_pitch, block + i * BLOCK_WIDTH, BLOCK_WIDTH * sizeof(short));
-}
-
-void
-vl_idct_unmap_buffers(struct vl_idct *idct, struct vl_idct_buffer *buffer)
-{
- assert(idct && buffer);
-
- idct->pipe->transfer_unmap(idct->pipe, buffer->tex_transfer);
- idct->pipe->transfer_destroy(idct->pipe, buffer->tex_transfer);
-}
-
-void
vl_idct_flush(struct vl_idct *idct, struct vl_idct_buffer *buffer, unsigned num_instances)
{
unsigned num_verts;