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/gpu_cmds.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'lib/gpu_cmds.h') diff --git a/lib/gpu_cmds.h b/lib/gpu_cmds.h index 3d71494e..79bc4d64 100644 --- a/lib/gpu_cmds.h +++ b/lib/gpu_cmds.h @@ -46,13 +46,13 @@ gen7_fill_curbe_buffer_data(struct intel_batchbuffer *batch, uint32_t gen7_fill_surface_state(struct intel_batchbuffer *batch, - struct igt_buf *buf, + const struct igt_buf *buf, uint32_t format, int is_dst); uint32_t gen7_fill_binding_table(struct intel_batchbuffer *batch, - struct igt_buf *dst); + const struct igt_buf *dst); uint32_t gen7_fill_kernel(struct intel_batchbuffer *batch, @@ -61,7 +61,8 @@ gen7_fill_kernel(struct intel_batchbuffer *batch, uint32_t gen7_fill_interface_descriptor(struct intel_batchbuffer *batch, - struct igt_buf *dst, const uint32_t kernel[][4], + const struct igt_buf *dst, + const uint32_t kernel[][4], size_t size); void @@ -95,13 +96,14 @@ gen8_spin_curbe_buffer_data(struct intel_batchbuffer *batch, uint32_t gen8_fill_surface_state(struct intel_batchbuffer *batch, - struct igt_buf *buf, + const struct igt_buf *buf, uint32_t format, int is_dst); uint32_t gen8_fill_interface_descriptor(struct intel_batchbuffer *batch, - struct igt_buf *dst, const uint32_t kernel[][4], + const struct igt_buf *dst, + const uint32_t kernel[][4], size_t size); void -- cgit v1.2.3