From: Chia-I Wu Date: Wed, 24 Sep 2014 07:18:02 +0000 (+0800) Subject: ilo: constify ilo_render in ilo_render_get_sample_position() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7f2ab668c98226c3bbc370f8e48ca0f02b05009;p=mesa.git ilo: constify ilo_render in ilo_render_get_sample_position() It is a getter and is not supposed to modify ilo_render. Signed-off-by: Chia-I Wu --- diff --git a/src/gallium/drivers/ilo/ilo_render.c b/src/gallium/drivers/ilo/ilo_render.c index 7248ed7dfb0..4b85f8cbeb3 100644 --- a/src/gallium/drivers/ilo/ilo_render.c +++ b/src/gallium/drivers/ilo/ilo_render.c @@ -130,7 +130,7 @@ ilo_render_destroy(struct ilo_render *render) } void -ilo_render_get_sample_position(struct ilo_render *render, +ilo_render_get_sample_position(const struct ilo_render *render, unsigned sample_count, unsigned sample_index, float *x, float *y) diff --git a/src/gallium/drivers/ilo/ilo_render.h b/src/gallium/drivers/ilo/ilo_render.h index 4c06b766eb2..a5f1c1b80cd 100644 --- a/src/gallium/drivers/ilo/ilo_render.h +++ b/src/gallium/drivers/ilo/ilo_render.h @@ -209,7 +209,7 @@ ilo_render_emit_rectlist(struct ilo_render *render, } void -ilo_render_get_sample_position(struct ilo_render *render, +ilo_render_get_sample_position(const struct ilo_render *render, unsigned sample_count, unsigned sample_index, float *x, float *y);