freedreno/a4xx: make _emit_const() static
authorRob Clark <robdclark@gmail.com>
Wed, 9 Nov 2016 18:16:36 +0000 (13:16 -0500)
committerRob Clark <robdclark@gmail.com>
Sun, 27 Nov 2016 22:26:05 +0000 (17:26 -0500)
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a4xx/fd4_draw.h
src/gallium/drivers/freedreno/a4xx/fd4_emit.c
src/gallium/drivers/freedreno/a4xx/fd4_emit.h

index 09d07bb..634b64b 100644 (file)
@@ -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,
index fc0e4d1..8a3a951 100644 (file)
@@ -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)
index 42e0e5e..00f92fa 100644 (file)
 
 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);