From: Rob Clark Date: Wed, 9 Nov 2016 18:16:36 +0000 (-0500) Subject: freedreno/a4xx: make _emit_const() static X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8b800d18a75d8d919239a91be07ac0aee42fa0d;p=mesa.git freedreno/a4xx: make _emit_const() static Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_draw.h b/src/gallium/drivers/freedreno/a4xx/fd4_draw.h index 09d07bb9799..634b64b0231 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 fc0e4d11155..8a3a951d7aa 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 42e0e5e645a..00f92faaf35 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);