summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-01-05 12:15:30 -0800
committerEric Anholt <[email protected]>2017-01-05 17:19:54 -0800
commit6cf9ff8a6ce1a74260238d7f1fc6ab86c7eaea58 (patch)
treec238bbde3a81b0a960ddc6a77db9713be88e00f1
parente64b1169d37599a9ee1c5877aa457a41c5a8d726 (diff)
vc4: Make the load/store utile functions static.
They don't have any other callers outside of this file, and I'm hoping they get inlined soon.
-rw-r--r--src/gallium/drivers/vc4/vc4_tiling.c4
-rw-r--r--src/gallium/drivers/vc4/vc4_tiling.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/vc4/vc4_tiling.c b/src/gallium/drivers/vc4/vc4_tiling.c
index 390ebe555c2..81d9ec48f2e 100644
--- a/src/gallium/drivers/vc4/vc4_tiling.c
+++ b/src/gallium/drivers/vc4/vc4_tiling.c
@@ -114,7 +114,7 @@ vc4_size_is_lt(uint32_t width, uint32_t height, int cpp)
height <= 4 * vc4_utile_height(cpp));
}
-void
+static void
vc4_load_utile(void *dst, void *src, uint32_t dst_stride, uint32_t cpp)
{
uint32_t src_stride = vc4_utile_stride(cpp);
@@ -125,7 +125,7 @@ vc4_load_utile(void *dst, void *src, uint32_t dst_stride, uint32_t cpp)
}
}
-void
+static void
vc4_store_utile(void *dst, void *src, uint32_t src_stride, uint32_t cpp)
{
uint32_t dst_stride = vc4_utile_stride(cpp);
diff --git a/src/gallium/drivers/vc4/vc4_tiling.h b/src/gallium/drivers/vc4/vc4_tiling.h
index b90bba70200..7c98c02a4b5 100644
--- a/src/gallium/drivers/vc4/vc4_tiling.h
+++ b/src/gallium/drivers/vc4/vc4_tiling.h
@@ -27,8 +27,6 @@
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,
void *src, uint32_t src_stride,
uint8_t tiling_format, int cpp,