From 8bd395f601243259c09f44e72b5e8b6e07682121 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 14 Mar 2006 23:34:37 +0000 Subject: [PATCH] comments --- src/mesa/drivers/dri/i915/intel_regions.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/dri/i915/intel_regions.h b/src/mesa/drivers/dri/i915/intel_regions.h index 0132932dd42..327c3c1f675 100644 --- a/src/mesa/drivers/dri/i915/intel_regions.h +++ b/src/mesa/drivers/dri/i915/intel_regions.h @@ -32,20 +32,21 @@ #include "intel_bufmgr.h" /* for DBG! */ struct intel_context; -/* A layer on top of the bufmgr buffers that adds a few useful things: +/** + * A layer on top of the bufmgr buffers that adds a few useful things: * * - Refcounting for local buffer references. * - Refcounting for buffer maps * - Buffer dimensions - pitch and height. - * - Blitter commands for copying 2D regions between buffers. + * - Blitter commands for copying 2D regions between buffers. (really???) */ struct intel_region { GLuint buffer; GLuint refcount; - GLuint cpp; - GLuint pitch; - GLuint height; - GLubyte *map; + GLuint cpp; /* bytes per pixel */ + GLuint pitch; /* in pixels */ + GLuint height; /* in pixels */ + GLubyte *map; /* only non-NULL when region is actually mapped */ GLuint map_refcount; };