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/gpu_cmds.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/gpu_cmds.c')
-rw-r--r-- | lib/gpu_cmds.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/gpu_cmds.c b/lib/gpu_cmds.c index 323b03f6..556a94c6 100644 --- a/lib/gpu_cmds.c +++ b/lib/gpu_cmds.c @@ -54,7 +54,7 @@ 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) { @@ -103,7 +103,7 @@ gen7_fill_surface_state(struct intel_batchbuffer *batch, uint32_t gen7_fill_binding_table(struct intel_batchbuffer *batch, - struct igt_buf *dst) + const struct igt_buf *dst) { uint32_t *binding_table, offset; @@ -133,7 +133,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) { struct gen7_interface_descriptor_data *idd; @@ -335,7 +336,7 @@ 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) { @@ -385,7 +386,8 @@ gen8_fill_surface_state(struct intel_batchbuffer *batch, 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) { struct gen8_interface_descriptor_data *idd; |