[Mesa-dev] [PATCH 2/5] gallium: add get_sample_position interface
Dave Airlie
airlied at gmail.com
Wed Apr 10 21:17:49 PDT 2013
From: Dave Airlie <airlied at redhat.com>
This is to be used to implement glGet GL_SAMPLE_POSITION.
Reviewed-by: Marek Olšák <maraeo at gmail.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/gallium/include/pipe/p_context.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h
index 7ed946e..da1f5a8 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);
};
--
1.8.2
More information about the mesa-dev
mailing list