summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-11-15 14:00:17 -0800
committerEric Anholt <eric@anholt.net>2007-11-16 15:36:18 -0800
commit152aa6350d473128422991342c0a4509f4b37bc6 (patch)
tree1e4033987841ad0f6ac919ce60a01bbf4f9d6af7 /src
parentc29e9e534ee2138d0fb26d5b1cf215bfcf5fc9ef (diff)
[intel] Add some doxygen notes on what the bufmgr_fake block members mean.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/common/dri_bufmgr_fake.c13
1 files changed, 11 insertions, 2 deletions
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;