diff options
author | Christian König <[email protected]> | 2011-04-11 23:55:36 +0200 |
---|---|---|
committer | Christian König <[email protected]> | 2011-04-11 23:55:36 +0200 |
commit | ccc80d2c09ad35f867c0c0a85f7e1cadd73941bb (patch) | |
tree | e4019b610fb68c294358750717cb3c39aa81e18a /src/gallium/auxiliary/vl/vl_idct.c | |
parent | 36b322dffd2429130f132f55f68acb1a23ba1658 (diff) |
[g3dvl] fully support different formats for source and intermediate textures
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_idct.c')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_idct.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/vl/vl_idct.c b/src/gallium/auxiliary/vl/vl_idct.c index f8e0f02c4f4..a20263bc182 100644 --- a/src/gallium/auxiliary/vl/vl_idct.c +++ b/src/gallium/auxiliary/vl/vl_idct.c @@ -585,7 +585,8 @@ bool vl_idct_init(struct vl_idct *idct, struct pipe_context *pipe, unsigned buffer_width, unsigned buffer_height, unsigned blocks_x, unsigned blocks_y, unsigned nr_of_render_targets, - struct pipe_sampler_view *matrix) + struct pipe_sampler_view *matrix, + struct pipe_sampler_view *transpose) { assert(idct && pipe && matrix); @@ -595,7 +596,9 @@ bool vl_idct_init(struct vl_idct *idct, struct pipe_context *pipe, idct->blocks_x = blocks_x; idct->blocks_y = blocks_y; idct->nr_of_render_targets = nr_of_render_targets; + pipe_sampler_view_reference(&idct->matrix, matrix); + pipe_sampler_view_reference(&idct->transpose, transpose); if(!init_shaders(idct)) return false; @@ -632,7 +635,7 @@ vl_idct_init_buffer(struct vl_idct *idct, struct vl_idct_buffer *buffer, pipe_sampler_view_reference(&buffer->sampler_views.individual.matrix, idct->matrix); pipe_sampler_view_reference(&buffer->sampler_views.individual.source, source); - pipe_sampler_view_reference(&buffer->sampler_views.individual.transpose, idct->matrix); + pipe_sampler_view_reference(&buffer->sampler_views.individual.transpose, idct->transpose); pipe_sampler_view_reference(&buffer->sampler_views.individual.intermediate, intermediate); if (!init_intermediate(idct, buffer)) |