summaryrefslogtreecommitdiff
path: root/tools/null_state_gen/intel_batchbuffer.h
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2015-09-08 16:49:24 +0100
committerThomas Wood <thomas.wood@intel.com>2015-09-11 14:39:43 +0100
commit3546514791e159e94ba3baf73cc2bad65a7a0f20 (patch)
treeb7b5c254fd5a1c6ef8b11986ee8e7bfe83f2ebf7 /tools/null_state_gen/intel_batchbuffer.h
parentfdecc1b5afbdcdb20fa98c642cea7fa1dc1a8944 (diff)
null_state_gen: add const to intel_batch_state_copy data
The data is not modified by the function and is often declared const. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tools/null_state_gen/intel_batchbuffer.h')
-rw-r--r--tools/null_state_gen/intel_batchbuffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/null_state_gen/intel_batchbuffer.h b/tools/null_state_gen/intel_batchbuffer.h
index 2919e870..771d1c80 100644
--- a/tools/null_state_gen/intel_batchbuffer.h
+++ b/tools/null_state_gen/intel_batchbuffer.h
@@ -80,7 +80,7 @@ struct intel_batchbuffer *intel_batchbuffer_create(void);
#define OUT_STATE_OFFSET(offset) bb_area_emit(batch->state, offset, STATE_OFFSET, #offset)
#define OUT_STATE_STRUCT(name, align) intel_batch_state_copy(batch, &name, sizeof(name), align, #name " " #align)
-uint32_t intel_batch_state_copy(struct intel_batchbuffer *batch, void *d, unsigned bytes, unsigned align,
+uint32_t intel_batch_state_copy(struct intel_batchbuffer *batch, const void *d, unsigned bytes, unsigned align,
const char *name);
uint32_t intel_batch_state_alloc(struct intel_batchbuffer *batch, unsigned bytes, unsigned align,
const char *name);