diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2017-06-02 18:18:38 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-07-05 19:54:02 +0300 |
commit | 8b3cc74c6911e9b2835fe6e160f84bae463a70ef (patch) | |
tree | e2682d7a53f0e1f6104de88298fe460a0d138f45 /lib/rendercopy_gen8.c | |
parent | dc46b778d84cdcdb36a648189d74cda58e5f7833 (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_gen8.c')
-rw-r--r-- | lib/rendercopy_gen8.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/rendercopy_gen8.c b/lib/rendercopy_gen8.c index 90b2730b..4406a0a0 100644 --- a/lib/rendercopy_gen8.c +++ b/lib/rendercopy_gen8.c @@ -144,7 +144,7 @@ gen6_render_flush(struct intel_batchbuffer *batch, static uint32_t gen8_bind_buf(struct intel_batchbuffer *batch, struct annotations_context *aub, - struct igt_buf *buf, + const struct igt_buf *buf, uint32_t format, int is_dst) { struct gen8_surface_state *ss; @@ -195,8 +195,8 @@ gen8_bind_buf(struct intel_batchbuffer *batch, static uint32_t gen8_bind_surfaces(struct intel_batchbuffer *batch, struct annotations_context *aub, - struct igt_buf *src, - struct igt_buf *dst) + const struct igt_buf *src, + const struct igt_buf *dst) { uint32_t *binding_table, offset; @@ -267,7 +267,7 @@ gen8_fill_ps(struct intel_batchbuffer *batch, static uint32_t gen7_fill_vertex_buffer_data(struct intel_batchbuffer *batch, struct annotations_context *aub, - struct igt_buf *src, + const struct igt_buf *src, uint32_t src_x, uint32_t src_y, uint32_t dst_x, uint32_t dst_y, uint32_t width, uint32_t height) @@ -823,7 +823,7 @@ gen7_emit_clear(struct intel_batchbuffer *batch) { } static void -gen6_emit_drawing_rectangle(struct intel_batchbuffer *batch, struct igt_buf *dst) +gen6_emit_drawing_rectangle(struct intel_batchbuffer *batch, const struct igt_buf *dst) { OUT_BATCH(GEN6_3DSTATE_DRAWING_RECTANGLE | (4 - 2)); OUT_BATCH(0); @@ -887,9 +887,9 @@ static void gen8_emit_primitive(struct intel_batchbuffer *batch, uint32_t offset 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) { struct annotations_context aub_annotations; uint32_t ps_sampler_state, ps_kernel_off, ps_binding_table; |