summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/vl/vl_idct.h
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-07-13 15:01:40 +0200
committerChristian König <[email protected]>2011-07-13 15:01:40 +0200
commit7c48575402e8c384db2fab24e4dd0fc72bef0451 (patch)
tree03d40737db263211c1c79916724ce6c9d7d027e9 /src/gallium/auxiliary/vl/vl_idct.h
parent5e5d7acc2f93ddad8212b00c845dbd6381ee4119 (diff)
[g3dvl] keep a pointer in idct buffer to idct object
So we always know to which idct object a buffer belongs
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_idct.h')
-rw-r--r--src/gallium/auxiliary/vl/vl_idct.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/vl/vl_idct.h b/src/gallium/auxiliary/vl/vl_idct.h
index 119a53dbf27..98e2c795564 100644
--- a/src/gallium/auxiliary/vl/vl_idct.h
+++ b/src/gallium/auxiliary/vl/vl_idct.h
@@ -58,6 +58,8 @@ struct vl_idct
/* a set of buffers to work with */
struct vl_idct_buffer
{
+ struct vl_idct *idct;
+
struct pipe_viewport_state viewport_mismatch;
struct pipe_viewport_state viewport;
@@ -107,13 +109,13 @@ vl_idct_init_buffer(struct vl_idct *idct, struct vl_idct_buffer *buffer,
/* cleanup a buffer of an idct instance */
void
-vl_idct_cleanup_buffer(struct vl_idct *idct, struct vl_idct_buffer *buffer);
+vl_idct_cleanup_buffer(struct vl_idct_buffer *buffer);
/* flush the buffer and start rendering, vertex buffers needs to be setup before calling this */
void
-vl_idct_flush(struct vl_idct *idct, struct vl_idct_buffer *buffer, unsigned num_verts);
+vl_idct_flush(struct vl_idct_buffer *buffer, unsigned num_verts);
void
-vl_idct_prepare_stage2(struct vl_idct *idct, struct vl_idct_buffer *buffer);
+vl_idct_prepare_stage2(struct vl_idct_buffer *buffer);
#endif