From 7c48575402e8c384db2fab24e4dd0fc72bef0451 Mon Sep 17 00:00:00 2001 From: Christian König Date: Wed, 13 Jul 2011 15:01:40 +0200 Subject: [g3dvl] keep a pointer in idct buffer to idct object So we always know to which idct object a buffer belongs --- src/gallium/auxiliary/vl/vl_idct.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/gallium/auxiliary/vl/vl_idct.h') 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 -- cgit v1.2.3