diff options
author | Christian König <[email protected]> | 2010-11-27 14:08:15 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2010-11-27 14:08:15 +0100 |
commit | 3fd53e6c2a05e65872de4292557d7839cbcf7395 (patch) | |
tree | 804dc08317dd9390f15246925af2c7af53d87dbd /src/gallium/auxiliary/vl/vl_idct.c | |
parent | 12836fbcfad7f317b1f5aa5e46f9946894bf040c (diff) |
[g3dvl] some more bugfixing
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_idct.c')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_idct.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/vl/vl_idct.c b/src/gallium/auxiliary/vl/vl_idct.c index 25dfac68d3c..be3e0c59ea7 100644 --- a/src/gallium/auxiliary/vl/vl_idct.c +++ b/src/gallium/auxiliary/vl/vl_idct.c @@ -653,12 +653,12 @@ vl_idct_upload_matrix(struct pipe_context *pipe) PIPE_TRANSFER_WRITE | PIPE_TRANSFER_DISCARD, &rect ); - pitch = buf_transfer->stride / util_format_get_blocksize(buf_transfer->resource->format); + pitch = buf_transfer->stride / sizeof(float); f = pipe->transfer_map(pipe, buf_transfer); for(i = 0; i < BLOCK_HEIGHT; ++i) for(j = 0; j < BLOCK_WIDTH; ++j) - f[i * pitch * 4 + j] = const_matrix[j][i]; // transpose + f[i * pitch + j] = const_matrix[j][i]; // transpose pipe->transfer_unmap(pipe, buf_transfer); pipe->transfer_destroy(pipe, buf_transfer); @@ -801,8 +801,6 @@ vl_idct_flush(struct vl_idct *idct) idct->pipe->set_vertex_buffers(idct->pipe, 2, idct->vertex_bufs.all); idct->pipe->bind_vertex_elements_state(idct->pipe, idct->vertex_elems_state); - idct->pipe->set_fragment_sampler_views(idct->pipe, 4, idct->sampler_views.all); - idct->pipe->bind_fragment_sampler_states(idct->pipe, 4, idct->samplers.all); idct->pipe->bind_vs_state(idct->pipe, idct->eb_vs); idct->pipe->bind_fs_state(idct->pipe, idct->eb_fs); |