From 8b3cc74c6911e9b2835fe6e160f84bae463a70ef Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Fri, 2 Jun 2017 18:18:38 +0300 Subject: lib: Constify igt_buf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No one generally needs to modify the igt_bufs we pass around, so make them const. Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson --- lib/rendercopy_i830.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/rendercopy_i830.c') diff --git a/lib/rendercopy_i830.c b/lib/rendercopy_i830.c index 04215b1b..2b07ad5d 100644 --- a/lib/rendercopy_i830.c +++ b/lib/rendercopy_i830.c @@ -133,7 +133,7 @@ static void gen2_emit_invariant(struct intel_batchbuffer *batch) } static void gen2_emit_target(struct intel_batchbuffer *batch, - struct igt_buf *dst) + const struct igt_buf *dst) { uint32_t tiling; @@ -161,7 +161,7 @@ static void gen2_emit_target(struct intel_batchbuffer *batch, } static void gen2_emit_texture(struct intel_batchbuffer *batch, - struct igt_buf *src, + const struct igt_buf *src, int unit) { uint32_t tiling; @@ -209,9 +209,9 @@ static void gen2_emit_copy_pipeline(struct intel_batchbuffer *batch) void gen2_render_copyfunc(struct intel_batchbuffer *batch, drm_intel_context *context, - struct igt_buf *src, unsigned src_x, unsigned src_y, + const struct igt_buf *src, unsigned src_x, unsigned src_y, unsigned width, unsigned height, - struct igt_buf *dst, unsigned dst_x, unsigned dst_y) + const struct igt_buf *dst, unsigned dst_x, unsigned dst_y) { gen2_emit_invariant(batch); gen2_emit_copy_pipeline(batch); -- cgit v1.2.3