summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/vl/vl_idct.h
diff options
context:
space:
mode:
authorChristian König <[email protected]>2010-11-28 14:48:31 +0100
committerChristian König <[email protected]>2010-12-03 19:04:00 +0100
commit4abe7382882a451a7750ccc451b8568768d122cb (patch)
tree273068eec7f3f16aa6fde6ac89e2f2e2f0e30e48 /src/gallium/auxiliary/vl/vl_idct.h
parenta984c67b316ac2ca9aaf6d38a3127cf3d61a249e (diff)
use a shadow buffer for vertex data to optimize memory access
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_idct.h')
-rw-r--r--src/gallium/auxiliary/vl/vl_idct.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/gallium/auxiliary/vl/vl_idct.h b/src/gallium/auxiliary/vl/vl_idct.h
index c26f5cb8c09..94a5c73977f 100644
--- a/src/gallium/auxiliary/vl/vl_idct.h
+++ b/src/gallium/auxiliary/vl/vl_idct.h
@@ -29,6 +29,7 @@
#define vl_idct_h
#include <pipe/p_state.h>
+#include "vl_vertex_buffers.h"
struct vl_idct
{
@@ -82,20 +83,11 @@ struct vl_idct
struct { struct pipe_vertex_buffer quad, pos; } individual;
} vertex_bufs;
- unsigned num_blocks;
-
- struct
- {
- unsigned l_x, l_y, r_x, r_y;
- } next_empty_block;
-
- unsigned num_empty_blocks;
+ struct vl_vertex_buffer blocks;
+ struct vl_vertex_buffer empty_blocks;
struct pipe_transfer *tex_transfer;
short *texels;
-
- struct pipe_transfer *vec_transfer;
- struct vertex2f *vectors;
};
struct pipe_resource *vl_idct_upload_matrix(struct pipe_context *pipe);