diff options
author | marha <marha@users.sourceforge.net> | 2012-02-01 08:36:02 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-02-01 08:36:02 +0100 |
commit | 68320ff05946f092b6836754c6267b1dff2f4633 (patch) | |
tree | 424d73f509dff521d4cc22a95369594b7ee56dad /mesalib/src/gallium/auxiliary/util/u_inlines.h | |
parent | 71b5bea4d5ef75f50bd7bd7b93f47f8552c178e0 (diff) | |
parent | 58ff764d4111bfaa7360c57bc62dd620fbdce06f (diff) | |
download | vcxsrv-68320ff05946f092b6836754c6267b1dff2f4633.tar.gz vcxsrv-68320ff05946f092b6836754c6267b1dff2f4633.tar.bz2 vcxsrv-68320ff05946f092b6836754c6267b1dff2f4633.zip |
Merge remote-tracking branch 'origin/released'
Diffstat (limited to 'mesalib/src/gallium/auxiliary/util/u_inlines.h')
-rw-r--r-- | mesalib/src/gallium/auxiliary/util/u_inlines.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mesalib/src/gallium/auxiliary/util/u_inlines.h b/mesalib/src/gallium/auxiliary/util/u_inlines.h index 9660cdc6e..c90dc5707 100644 --- a/mesalib/src/gallium/auxiliary/util/u_inlines.h +++ b/mesalib/src/gallium/auxiliary/util/u_inlines.h @@ -461,6 +461,17 @@ static INLINE void util_copy_vertex_buffers(struct pipe_vertex_buffer *dst, memcpy(dst, src, src_count * sizeof(struct pipe_vertex_buffer)); } +static INLINE float +util_get_min_point_size(const struct pipe_rasterizer_state *state) +{ + /* The point size should be clamped to this value at the rasterizer stage. + */ + return state->gl_rasterization_rules && + !state->point_quad_rasterization && + !state->point_smooth && + !state->multisample ? 1.0f : 0.0f; +} + #ifdef __cplusplus } #endif |