Mesa (master): freedreno/a4xx: make _emit_const() static

Rob Clark robclark at kemper.freedesktop.org
Sun Nov 27 22:35:23 UTC 2016


Module: Mesa
Branch: master
Commit: b8b800d18a75d8d919239a91be07ac0aee42fa0d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b8b800d18a75d8d919239a91be07ac0aee42fa0d

Author: Rob Clark <robdclark at gmail.com>
Date:   Wed Nov  9 13:16:36 2016 -0500

freedreno/a4xx: make _emit_const() static

Signed-off-by: Rob Clark <robdclark at gmail.com>

---

 src/gallium/drivers/freedreno/a4xx/fd4_draw.h | 2 +-
 src/gallium/drivers/freedreno/a4xx/fd4_emit.c | 2 +-
 src/gallium/drivers/freedreno/a4xx/fd4_emit.h | 4 ----
 3 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_draw.h b/src/gallium/drivers/freedreno/a4xx/fd4_draw.h
index 09d07bb..634b64b 100644
--- a/src/gallium/drivers/freedreno/a4xx/fd4_draw.h
+++ b/src/gallium/drivers/freedreno/a4xx/fd4_draw.h
@@ -87,7 +87,6 @@ fd4_draw(struct fd_batch *batch, struct fd_ringbuffer *ring,
 	fd_reset_wfi(batch);
 }
 
-
 static inline enum a4xx_index_size
 fd4_size2indextype(unsigned index_size)
 {
@@ -100,6 +99,7 @@ fd4_size2indextype(unsigned index_size)
 	assert(0);
 	return INDEX4_SIZE_32_BIT;
 }
+
 static inline void
 fd4_draw_emit(struct fd_batch *batch, struct fd_ringbuffer *ring,
 		enum pc_di_primtype primtype,
diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_emit.c b/src/gallium/drivers/freedreno/a4xx/fd4_emit.c
index fc0e4d1..8a3a951 100644
--- a/src/gallium/drivers/freedreno/a4xx/fd4_emit.c
+++ b/src/gallium/drivers/freedreno/a4xx/fd4_emit.c
@@ -54,7 +54,7 @@ static const enum adreno_state_block sb[] = {
  * prsc or dwords: buffer containing constant values
  * sizedwords:     size of const value buffer
  */
-void
+static void
 fd4_emit_const(struct fd_ringbuffer *ring, enum shader_t type,
 		uint32_t regid, uint32_t offset, uint32_t sizedwords,
 		const uint32_t *dwords, struct pipe_resource *prsc)
diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_emit.h b/src/gallium/drivers/freedreno/a4xx/fd4_emit.h
index 42e0e5e..00f92fa 100644
--- a/src/gallium/drivers/freedreno/a4xx/fd4_emit.h
+++ b/src/gallium/drivers/freedreno/a4xx/fd4_emit.h
@@ -38,10 +38,6 @@
 
 struct fd_ringbuffer;
 
-void fd4_emit_const(struct fd_ringbuffer *ring, enum shader_t type,
-		uint32_t regid, uint32_t offset, uint32_t sizedwords,
-		const uint32_t *dwords, struct pipe_resource *prsc);
-
 void fd4_emit_gmem_restore_tex(struct fd_ringbuffer *ring,
 		unsigned nr_bufs, struct pipe_surface **bufs);
 




More information about the mesa-commit mailing list