diff options
author | Rob Clark <[email protected]> | 2019-08-01 08:31:25 -0700 |
---|---|---|
committer | Rob Clark <[email protected]> | 2019-08-13 08:11:26 -0700 |
commit | f0b91730a14bab95e5a59f62cb0159d549a5750e (patch) | |
tree | 972df2d3cdb639e60d7d4309022263fbf268a7b9 /src/gallium/drivers/freedreno/ir3/ir3_gallium.c | |
parent | 53667a43c4fbe0a902b5516ff263cfcb07ee1175 (diff) |
freedreno/a6xx: stop using ir3_emit_{vs,fs}_consts()
Should be no functional change. Next step is to re-arrange various
const state into different stateobjs.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3/ir3_gallium.c')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_gallium.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_gallium.c b/src/gallium/drivers/freedreno/ir3/ir3_gallium.c index f1b34440d47..fb83d0e7e63 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_gallium.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_gallium.c @@ -211,8 +211,8 @@ emit_const(struct fd_screen *screen, struct fd_ringbuffer *ring, offset, size, user_buffer, buffer); } -static void -emit_user_consts(struct fd_screen *screen, const struct ir3_shader_variant *v, +void +ir3_emit_user_consts(struct fd_screen *screen, const struct ir3_shader_variant *v, struct fd_ringbuffer *ring, struct fd_constbuf_stateobj *constbuf) { struct ir3_ubo_analysis_state *state; @@ -246,8 +246,8 @@ emit_user_consts(struct fd_screen *screen, const struct ir3_shader_variant *v, } } -static void -emit_ubos(struct fd_screen *screen, const struct ir3_shader_variant *v, +void +ir3_emit_ubos(struct fd_screen *screen, const struct ir3_shader_variant *v, struct fd_ringbuffer *ring, struct fd_constbuf_stateobj *constbuf) { const struct ir3_const_state *const_state = &v->shader->const_state; @@ -277,8 +277,8 @@ emit_ubos(struct fd_screen *screen, const struct ir3_shader_variant *v, } } -static void -emit_ssbo_sizes(struct fd_screen *screen, const struct ir3_shader_variant *v, +void +ir3_emit_ssbo_sizes(struct fd_screen *screen, const struct ir3_shader_variant *v, struct fd_ringbuffer *ring, struct fd_shaderbuf_stateobj *sb) { const struct ir3_const_state *const_state = &v->shader->const_state; @@ -298,8 +298,8 @@ emit_ssbo_sizes(struct fd_screen *screen, const struct ir3_shader_variant *v, } } -static void -emit_image_dims(struct fd_screen *screen, const struct ir3_shader_variant *v, +void +ir3_emit_image_dims(struct fd_screen *screen, const struct ir3_shader_variant *v, struct fd_ringbuffer *ring, struct fd_shaderimg_stateobj *si) { const struct ir3_const_state *const_state = &v->shader->const_state; @@ -350,8 +350,8 @@ emit_image_dims(struct fd_screen *screen, const struct ir3_shader_variant *v, } } -static void -emit_immediates(struct fd_screen *screen, const struct ir3_shader_variant *v, +void +ir3_emit_immediates(struct fd_screen *screen, const struct ir3_shader_variant *v, struct fd_ringbuffer *ring) { const struct ir3_const_state *const_state = &v->shader->const_state; @@ -482,22 +482,22 @@ emit_common_consts(const struct ir3_shader_variant *v, struct fd_ringbuffer *rin ring_wfi(ctx->batch, ring); - emit_user_consts(ctx->screen, v, ring, constbuf); - emit_ubos(ctx->screen, v, ring, constbuf); + ir3_emit_user_consts(ctx->screen, v, ring, constbuf); + ir3_emit_ubos(ctx->screen, v, ring, constbuf); if (shader_dirty) - emit_immediates(ctx->screen, v, ring); + ir3_emit_immediates(ctx->screen, v, ring); } if (dirty & (FD_DIRTY_SHADER_PROG | FD_DIRTY_SHADER_SSBO)) { struct fd_shaderbuf_stateobj *sb = &ctx->shaderbuf[t]; ring_wfi(ctx->batch, ring); - emit_ssbo_sizes(ctx->screen, v, ring, sb); + ir3_emit_ssbo_sizes(ctx->screen, v, ring, sb); } if (dirty & (FD_DIRTY_SHADER_PROG | FD_DIRTY_SHADER_IMAGE)) { struct fd_shaderimg_stateobj *si = &ctx->shaderimg[t]; ring_wfi(ctx->batch, ring); - emit_image_dims(ctx->screen, v, ring, si); + ir3_emit_image_dims(ctx->screen, v, ring, si); } } |