[Mesa-dev] [PATCH 1/4] gallium: add get_sample_position interface
Brian Paul
brianp at vmware.com
Mon Mar 4 08:09:22 PST 2013
On 03/03/2013 01:27 PM, Dave Airlie wrote:
> From: Dave Airlie<airlied at redhat.com>
>
> This is to be used to implement glGet GL_SAMPLE_POSITION.
>
> Signed-off-by: Dave Airlie<airlied at redhat.com>
> ---
> src/gallium/include/pipe/p_context.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h
> index 7ed946e..4ffee20 100644
> --- a/src/gallium/include/pipe/p_context.h
> +++ b/src/gallium/include/pipe/p_context.h
> @@ -520,6 +520,10 @@ struct pipe_context {
> const uint *block_layout, const uint *grid_layout,
> uint32_t pc, const void *input);
> /*@}*/
> + void (*get_sample_position)(struct pipe_context *context,
> + int max_samples,
> + unsigned sample_index,
> + float *out_value);
> };
Should max_samples be unsigned?
-Brian
More information about the mesa-dev
mailing list