diff options
author | Keith Whitwell <keithw@vmware.com> | 2010-05-14 19:20:25 +0100 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2010-05-14 19:20:25 +0100 |
commit | 9c264642c385557d64b9bc6bbe31d2d15e703aff (patch) | |
tree | be9a5eb3b0369128f05518b4e91984a1e459616d /src/gallium/auxiliary/util/u_inlines.h | |
parent | 0bd1cbcd0d28dbadfb0c3e1f8b048a18b56bc72c (diff) | |
download | external_mesa3d-9c264642c385557d64b9bc6bbe31d2d15e703aff.zip external_mesa3d-9c264642c385557d64b9bc6bbe31d2d15e703aff.tar.gz external_mesa3d-9c264642c385557d64b9bc6bbe31d2d15e703aff.tar.bz2 |
gallium: more work on ccw flag removal
The linux-debug target builds...
Diffstat (limited to 'src/gallium/auxiliary/util/u_inlines.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_inlines.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_inlines.h b/src/gallium/auxiliary/util/u_inlines.h index a48689e..540305c 100644 --- a/src/gallium/auxiliary/util/u_inlines.h +++ b/src/gallium/auxiliary/util/u_inlines.h @@ -369,6 +369,24 @@ pipe_transfer_destroy( struct pipe_context *context, } +static INLINE boolean util_get_offset( + const struct pipe_rasterizer_state *templ, + unsigned fill_mode) +{ + switch(fill_mode) { + case PIPE_POLYGON_MODE_POINT: + return templ->offset_point; + case PIPE_POLYGON_MODE_LINE: + return templ->offset_line; + case PIPE_POLYGON_MODE_FILL: + return templ->offset_tri; + default: + assert(0); + return FALSE; + } +} + + #ifdef __cplusplus } #endif |