summaryrefslogtreecommitdiff
path: root/lib/gpgpu_fill.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/gpgpu_fill.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/gpgpu_fill.h')
-rw-r--r--lib/gpgpu_fill.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gpgpu_fill.h b/lib/gpgpu_fill.h
index 0190bfc1..40246d1a 100644
--- a/lib/gpgpu_fill.h
+++ b/lib/gpgpu_fill.h
@@ -31,21 +31,21 @@
void
gen7_gpgpu_fillfunc(struct intel_batchbuffer *batch,
- struct igt_buf *dst,
+ const struct igt_buf *dst,
unsigned int x, unsigned int y,
unsigned int width, unsigned int height,
uint8_t color);
void
gen8_gpgpu_fillfunc(struct intel_batchbuffer *batch,
- struct igt_buf *dst,
+ const struct igt_buf *dst,
unsigned int x, unsigned int y,
unsigned int width, unsigned int height,
uint8_t color);
void
gen9_gpgpu_fillfunc(struct intel_batchbuffer *batch,
- struct igt_buf *dst,
+ const struct igt_buf *dst,
unsigned int x, unsigned int y,
unsigned int width, unsigned int height,
uint8_t color);