From: Brian Paul Date: Thu, 25 Jul 2013 17:21:50 +0000 (-0600) Subject: gallium/util: reformat, comment util_get_offset() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fdbd6a50337155408b8088ba3a38c370ab66a23e;p=mesa.git gallium/util: reformat, comment util_get_offset() Reviewed-by: Roland Scheidegger --- diff --git a/src/gallium/auxiliary/util/u_inlines.h b/src/gallium/auxiliary/util/u_inlines.h index f6ba8ae5313..7a82f05c385 100644 --- a/src/gallium/auxiliary/util/u_inlines.h +++ b/src/gallium/auxiliary/util/u_inlines.h @@ -498,9 +498,13 @@ pipe_set_constant_buffer(struct pipe_context *pipe, uint shader, uint index, } -static INLINE boolean util_get_offset( - const struct pipe_rasterizer_state *templ, - unsigned fill_mode) +/** + * Get the polygon offset enable/disable flag for the given polygon fill mode. + * \param fill_mode one of PIPE_POLYGON_MODE_POINT/LINE/FILL + */ +static INLINE boolean +util_get_offset(const struct pipe_rasterizer_state *templ, + unsigned fill_mode) { switch(fill_mode) { case PIPE_POLYGON_MODE_POINT: