From 6cf9ff8a6ce1a74260238d7f1fc6ab86c7eaea58 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 5 Jan 2017 12:15:30 -0800 Subject: [PATCH] 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. --- src/gallium/drivers/vc4/vc4_tiling.c | 4 ++-- src/gallium/drivers/vc4/vc4_tiling.h | 2 -- 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 390ebe5..81d9ec4 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 b90bba7..7c98c02 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, -- 2.7.4