ilo: constify ilo_render in ilo_render_get_sample_position()
authorChia-I Wu <olvaffe@gmail.com>
Wed, 24 Sep 2014 07:18:02 +0000 (15:18 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Fri, 26 Sep 2014 13:15:55 +0000 (21:15 +0800)
It is a getter and is not supposed to modify ilo_render.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
src/gallium/drivers/ilo/ilo_render.c
src/gallium/drivers/ilo/ilo_render.h

index 7248ed7dfb04c659363c6cdb52cd135392e384b7..4b85f8cbeb34f01363810ed5c504791931e085c0 100644 (file)
@@ -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)
index 4c06b766eb246ddc28612398f7d05a43fc078ccb..a5f1c1b80cddc0dea8942eb19040f30cddf9a7db 100644 (file)
@@ -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);