summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_inlines.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2013-07-25 11:21:50 -0600
committerBrian Paul <brianp@vmware.com>2013-07-31 06:53:48 -0600
commitfdbd6a50337155408b8088ba3a38c370ab66a23e (patch)
tree2e01e3a446512c4424682b5b0867b8ea110ba1b4 /src/gallium/auxiliary/util/u_inlines.h
parent30f1770cb193ab2fd316b9c28486eb9738e46185 (diff)
downloadexternal_mesa3d-fdbd6a50337155408b8088ba3a38c370ab66a23e.zip
external_mesa3d-fdbd6a50337155408b8088ba3a38c370ab66a23e.tar.gz
external_mesa3d-fdbd6a50337155408b8088ba3a38c370ab66a23e.tar.bz2
gallium/util: reformat, comment util_get_offset()
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/util/u_inlines.h')
-rw-r--r--src/gallium/auxiliary/util/u_inlines.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/util/u_inlines.h b/src/gallium/auxiliary/util/u_inlines.h
index f6ba8ae..7a82f05 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: