From: Brian Date: Tue, 10 Jul 2007 17:00:24 +0000 (-0600) Subject: comments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e7a208514812506eeb9862b91258392da646b618;p=mesa.git comments --- diff --git a/src/mesa/pipe/softpipe/sp_context.h b/src/mesa/pipe/softpipe/sp_context.h index 21d17c474f0..c6046624a19 100644 --- a/src/mesa/pipe/softpipe/sp_context.h +++ b/src/mesa/pipe/softpipe/sp_context.h @@ -66,7 +66,7 @@ enum interp_mode { struct softpipe_context { - struct pipe_context pipe; + struct pipe_context pipe; /**< base class */ /* The most recent drawing state as set by the driver: */ @@ -97,22 +97,23 @@ struct softpipe_context { /* FS + setup derived state: */ + + /** Map fragment program attribute to quad/coef array slot */ GLuint fp_attr_to_slot[PIPE_ATTRIB_MAX]; + /** Map vertex format attribute to a vertex attribute slot */ GLuint vf_attr_to_slot[PIPE_ATTRIB_MAX]; GLuint nr_attrs; - GLuint nr_frag_attrs; - GLuint attr_mask; + GLuint nr_frag_attrs; /**< number of active fragment attribs */ + GLbitfield attr_mask; /**< bitfield of VF_ATTRIB_ indexes/bits */ - GLboolean need_z; - GLboolean need_w; + GLboolean need_z; /**< produce quad/fragment Z values? */ + GLboolean need_w; /**< produce quad/fragment W values? */ /* Stipple derived state: */ GLubyte stipple_masks[16][16]; - /* - * Software quad rendering pipeline - */ + /** Software quad rendering pipeline */ struct { struct quad_stage *shade; struct quad_stage *alpha_test; @@ -123,8 +124,7 @@ struct softpipe_context { struct quad_stage *first; /**< points to one of the above stages */ } quad; - /* Temp kludge: - */ + /** The primitive drawing context */ struct draw_context *draw; };