summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_tiling.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-07-10 16:30:27 -0700
committerEric Anholt <[email protected]>2015-07-17 12:25:55 -0700
commit90dfabc3b5ce5b485a1bbcd7e815a72588f7153d (patch)
tree8a58b213f0825a9f5dfb3c097f62085dc4aa1779 /src/gallium/drivers/vc4/vc4_tiling.h
parentbe1f49bda90425b7fd009ac177b307e61da0f994 (diff)
vc4: Use the pure/const attributes on a bunch of our QPU functions.
On a release build, this makes the rest of vc4_qpu_validate.c go away (the compiler didn't know that our qpu helper function calls had no side effects).
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_tiling.h')
-rw-r--r--src/gallium/drivers/vc4/vc4_tiling.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/vc4/vc4_tiling.h b/src/gallium/drivers/vc4/vc4_tiling.h
index b5d10da3417..b90bba70200 100644
--- a/src/gallium/drivers/vc4/vc4_tiling.h
+++ b/src/gallium/drivers/vc4/vc4_tiling.h
@@ -24,9 +24,9 @@
#ifndef VC4_TILING_H
#define VC4_TILING_H
-uint32_t vc4_utile_width(int cpp);
-uint32_t vc4_utile_height(int cpp);
-bool vc4_size_is_lt(uint32_t width, uint32_t height, int cpp);
+uint32_t vc4_utile_width(int cpp) ATTRIBUTE_CONST;
+uint32_t vc4_utile_height(int cpp) ATTRIBUTE_CONST;
+bool vc4_size_is_lt(uint32_t width, uint32_t height, int cpp) ATTRIBUTE_CONST;
void vc4_load_utile(void *dst, void *src, uint32_t dst_stride, uint32_t cpp);
void vc4_store_utile(void *dst, void *src, uint32_t src_stride, uint32_t cpp);
void vc4_load_tiled_image(void *dst, uint32_t dst_stride,