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/gpgpu_fill.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/gpgpu_fill.c') diff --git a/lib/gpgpu_fill.c b/lib/gpgpu_fill.c index 26212842..a276e9d0 100644 --- a/lib/gpgpu_fill.c +++ b/lib/gpgpu_fill.c @@ -105,7 +105,7 @@ static const uint32_t gen9_gpgpu_kernel[][4] = { void gen7_gpgpu_fillfunc(struct intel_batchbuffer *batch, - struct igt_buf *dst, + const struct igt_buf *dst, unsigned int x, unsigned int y, unsigned int width, unsigned int height, uint8_t color) @@ -154,7 +154,7 @@ gen7_gpgpu_fillfunc(struct intel_batchbuffer *batch, void gen8_gpgpu_fillfunc(struct intel_batchbuffer *batch, - struct igt_buf *dst, + const struct igt_buf *dst, unsigned int x, unsigned int y, unsigned int width, unsigned int height, uint8_t color) @@ -202,7 +202,7 @@ gen8_gpgpu_fillfunc(struct intel_batchbuffer *batch, static void __gen9_gpgpu_fillfunc(struct intel_batchbuffer *batch, - struct igt_buf *dst, + const struct igt_buf *dst, unsigned int x, unsigned int y, unsigned int width, unsigned int height, uint8_t color, const uint32_t kernel[][4], @@ -251,7 +251,7 @@ __gen9_gpgpu_fillfunc(struct intel_batchbuffer *batch, } void gen9_gpgpu_fillfunc(struct intel_batchbuffer *batch, - struct igt_buf *dst, + const struct igt_buf *dst, unsigned int x, unsigned int y, unsigned int width, unsigned int height, uint8_t color) -- cgit v1.2.3