diff options
author | Dave Airlie <[email protected]> | 2013-03-04 06:11:07 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2013-04-11 21:09:28 +0100 |
commit | cc906396c76076f68b4e753a8d28a7f8420b2f79 (patch) | |
tree | 6b3fc5d7377c66bc7f7e6b038a69a509faf4b4f6 | |
parent | 184278a804bb92b998b46c1f8db8b516cd7dcf21 (diff) |
gallium: add get_sample_position interface
This is to be used to implement glGet GL_SAMPLE_POSITION.
Reviewed-by: Marek Olšák <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/gallium/include/pipe/p_context.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h index 7ed946e2ca9..da1f5a88a64 100644 --- a/src/gallium/include/pipe/p_context.h +++ b/src/gallium/include/pipe/p_context.h @@ -520,6 +520,19 @@ struct pipe_context { const uint *block_layout, const uint *grid_layout, uint32_t pc, const void *input); /*@}*/ + + /** + * Get sample position for an individual sample point. + * + * \param sample_count - total number of samples + * \param sample_index - sample to get the position values for + * \param out_value - return value of 2 floats for x and y position for + * requested sample. + */ + void (*get_sample_position)(struct pipe_context *context, + unsigned sample_count, + unsigned sample_index, + float *out_value); }; |