summaryrefslogtreecommitdiff
path: root/lib/rendercopy.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2017-06-02 18:18:38 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2018-07-05 19:54:02 +0300
commit8b3cc74c6911e9b2835fe6e160f84bae463a70ef (patch)
treee2682d7a53f0e1f6104de88298fe460a0d138f45 /lib/rendercopy.h
parentdc46b778d84cdcdb36a648189d74cda58e5f7833 (diff)
lib: Constify igt_buf
No one generally needs to modify the igt_bufs we pass around, so make them const. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/rendercopy.h')
-rw-r--r--lib/rendercopy.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/rendercopy.h b/lib/rendercopy.h
index fdc3cabb..f1c50197 100644
--- a/lib/rendercopy.h
+++ b/lib/rendercopy.h
@@ -25,31 +25,31 @@ static inline void emit_vertex_normalized(struct intel_batchbuffer *batch,
void gen9_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 gen8_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 gen7_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 gen6_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,
- 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 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);