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 09d07bb97998d427afe5245f3910ea046fea51af..634b64b02317137de149d5013954cbc6b4a295b3 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 fc0e4d11155037ed7e2b4845551e8b45befb8f00..8a3a951d7aa3cdf3bd9b1da318f01403c8dbb648 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 42e0e5e645a788af53be5a2f71dd4da313623d13..00f92faaf352d18b7699c4a9447921cc4ade19c2 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);