diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-07-20 18:05:35 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-07-20 18:55:57 +0100 |
commit | 65fccc149b85968cdce4737266b056059c1510f3 (patch) | |
tree | cf2fc84668743828915138b1a7fb6e2a5202f38c /lib/rendercopy.h | |
parent | 65cdccdc7bcbb791d791aeeeecb784a382110a3c (diff) |
lib/rendercopy: Fix lack of const throughout gen4 rendercopy
The gen4 code was pushed without being fixed up for the constification
of igt_render_copyfunc_t
../lib/intel_batchbuffer.c: In function ‘igt_get_render_copyfunc’:
../lib/intel_batchbuffer.c:837:8: warning: assignment to ‘igt_render_copyfunc_t’ {aka ‘void (*)(struct intel_batchbuffer *, struct _drm_intel_context *, const struct igt_buf *, unsigned int, unsigned int, unsigned int, unsigned int, const struct igt_buf *, unsigned int, unsigned int)’} from incompatible pointer type ‘void (*)(struct intel_batchbuffer *, drm_intel_context *, struct igt_buf *, unsigned int, unsigned int, unsigned int, unsigned int, struct igt_buf *, unsigned int, unsigned int)’ {aka ‘void (*)(struct intel_batchbuffer *, struct _drm_intel_context *, struct igt_buf *, unsigned int, unsigned int, unsigned int, unsigned int, struct igt_buf *, unsigned int, unsigned int)’} [-Wincompatible-pointer-types]
copy = gen4_render_copyfunc;
Fixes: 61370b2d43db ("lib/rendercopy: Add gen4/5 rendercopy")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'lib/rendercopy.h')
-rw-r--r-- | lib/rendercopy.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rendercopy.h b/lib/rendercopy.h index 2eb67b21..d1bb6284 100644 --- a/lib/rendercopy.h +++ b/lib/rendercopy.h @@ -45,9 +45,9 @@ void gen6_render_copyfunc(struct intel_batchbuffer *batch, const struct igt_buf *dst, unsigned dst_x, unsigned dst_y); void gen4_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); void gen3_render_copyfunc(struct intel_batchbuffer *batch, drm_intel_context *context, const struct igt_buf *src, unsigned src_x, unsigned src_y, |