From 152aa6350d473128422991342c0a4509f4b37bc6 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 15 Nov 2007 14:00:17 -0800 Subject: [intel] Add some doxygen notes on what the bufmgr_fake block members mean. --- src/mesa/drivers/dri/common/dri_bufmgr_fake.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/mesa/drivers/dri/common') diff --git a/src/mesa/drivers/dri/common/dri_bufmgr_fake.c b/src/mesa/drivers/dri/common/dri_bufmgr_fake.c index 48a0a3caa52..c31bd7c6b0d 100644 --- a/src/mesa/drivers/dri/common/dri_bufmgr_fake.c +++ b/src/mesa/drivers/dri/common/dri_bufmgr_fake.c @@ -66,7 +66,7 @@ struct fake_buffer_reloc dri_bo *reloc_buf; dri_bo *target_buf; GLuint offset; - GLuint delta; /* not needed? */ + GLuint delta; GLuint validate_flags; GLboolean relocated; }; @@ -75,10 +75,19 @@ struct block { struct block *next, *prev; struct mem_block *mem; /* BM_MEM_AGP */ + /** + * Marks that the block is currently in the aperture and has yet to be + * fenced. + */ unsigned on_hardware:1; + /** + * Marks that the block is currently fenced (being used by rendering) and + * can't be freed until @fence is passed. + */ unsigned fenced:1; - unsigned fence; /* BM_MEM_AGP, Split to read_fence, write_fence */ + /** Fence cookie for the block. */ + unsigned fence; /* Split to read_fence, write_fence */ dri_bo *bo; void *virtual; -- cgit v1.2.3