diff options
author | Marek Olšák <[email protected]> | 2018-04-08 20:26:14 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-04-27 17:56:04 -0400 |
commit | 9054799b39e41e5aae6dde6bc6bebbd23abdd558 (patch) | |
tree | 66342ae940865c03d6971c567360275f7760cd92 /src/gallium/drivers/radeonsi/si_state.c | |
parent | a8abbbb172ea69453ac5bbb6a97c3497eda4ca53 (diff) |
radeonsi: rename r600_atom -> si_atom
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 7e306665f46..cd799e032a4 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -35,17 +35,17 @@ /* Initialize an external atom (owned by ../radeon). */ static void -si_init_external_atom(struct si_context *sctx, struct r600_atom *atom, - struct r600_atom **list_elem) +si_init_external_atom(struct si_context *sctx, struct si_atom *atom, + struct si_atom **list_elem) { atom->id = list_elem - sctx->atoms.array; *list_elem = atom; } /* Initialize an atom owned by radeonsi. */ -void si_init_atom(struct si_context *sctx, struct r600_atom *atom, - struct r600_atom **list_elem, - void (*emit_func)(struct si_context *ctx, struct r600_atom *state)) +void si_init_atom(struct si_context *sctx, struct si_atom *atom, + struct si_atom **list_elem, + void (*emit_func)(struct si_context *ctx, struct si_atom *state)) { atom->emit = emit_func; atom->id = list_elem - sctx->atoms.array; @@ -83,7 +83,7 @@ static unsigned si_pack_float_12p4(float x) * CB_TARGET_MASK is emitted here to avoid a hang with dual source blending * if there is not enough PS outputs. */ -static void si_emit_cb_render_state(struct si_context *sctx, struct r600_atom *atom) +static void si_emit_cb_render_state(struct si_context *sctx, struct si_atom *atom) { struct radeon_winsys_cs *cs = sctx->gfx_cs; struct si_state_blend *blend = sctx->queued.named.blend; @@ -716,7 +716,7 @@ static void si_set_blend_color(struct pipe_context *ctx, si_mark_atom_dirty(sctx, &sctx->blend_color.atom); } -static void si_emit_blend_color(struct si_context *sctx, struct r600_atom *atom) +static void si_emit_blend_color(struct si_context *sctx, struct si_atom *atom) { struct radeon_winsys_cs *cs = sctx->gfx_cs; @@ -750,7 +750,7 @@ static void si_set_clip_state(struct pipe_context *ctx, pipe_resource_reference(&cb.buffer, NULL); } -static void si_emit_clip_state(struct si_context *sctx, struct r600_atom *atom) +static void si_emit_clip_state(struct si_context *sctx, struct si_atom *atom) { struct radeon_winsys_cs *cs = sctx->gfx_cs; @@ -758,7 +758,7 @@ static void si_emit_clip_state(struct si_context *sctx, struct r600_atom *atom) radeon_emit_array(cs, (uint32_t*)sctx->clip_state.state.ucp, 6*4); } -static void si_emit_clip_regs(struct si_context *sctx, struct r600_atom *atom) +static void si_emit_clip_regs(struct si_context *sctx, struct si_atom *atom) { struct radeon_winsys_cs *cs = sctx->gfx_cs; struct si_shader *vs = si_get_vs_state(sctx); @@ -1072,7 +1072,7 @@ static void si_delete_rs_state(struct pipe_context *ctx, void *state) /* * infeered state between dsa and stencil ref */ -static void si_emit_stencil_ref(struct si_context *sctx, struct r600_atom *atom) +static void si_emit_stencil_ref(struct si_context *sctx, struct si_atom *atom) { struct radeon_winsys_cs *cs = sctx->gfx_cs; struct pipe_stencil_ref *ref = &sctx->stencil_ref.state; @@ -1360,7 +1360,7 @@ void si_save_qbo_state(struct si_context *sctx, struct si_qbo_state *st) si_get_shader_buffers(sctx, PIPE_SHADER_COMPUTE, 0, 3, st->saved_ssbo); } -static void si_emit_db_render_state(struct si_context *sctx, struct r600_atom *state) +static void si_emit_db_render_state(struct si_context *sctx, struct si_atom *state) { struct radeon_winsys_cs *cs = sctx->gfx_cs; struct si_state_rasterizer *rs = sctx->queued.named.rasterizer; @@ -2952,7 +2952,7 @@ static void si_set_framebuffer_state(struct pipe_context *ctx, } } -static void si_emit_framebuffer_state(struct si_context *sctx, struct r600_atom *atom) +static void si_emit_framebuffer_state(struct si_context *sctx, struct si_atom *atom) { struct radeon_winsys_cs *cs = sctx->gfx_cs; struct pipe_framebuffer_state *state = &sctx->framebuffer.state; @@ -3210,7 +3210,7 @@ static void si_emit_framebuffer_state(struct si_context *sctx, struct r600_atom } static void si_emit_msaa_sample_locs(struct si_context *sctx, - struct r600_atom *atom) + struct si_atom *atom) { struct radeon_winsys_cs *cs = sctx->gfx_cs; unsigned nr_samples = sctx->framebuffer.nr_samples; @@ -3321,7 +3321,7 @@ static bool si_out_of_order_rasterization(struct si_context *sctx) return true; } -static void si_emit_msaa_config(struct si_context *sctx, struct r600_atom *atom) +static void si_emit_msaa_config(struct si_context *sctx, struct si_atom *atom) { struct radeon_winsys_cs *cs = sctx->gfx_cs; unsigned num_tile_pipes = sctx->screen->info.num_tile_pipes; @@ -4177,7 +4177,7 @@ static void si_set_sample_mask(struct pipe_context *ctx, unsigned sample_mask) si_mark_atom_dirty(sctx, &sctx->sample_mask.atom); } -static void si_emit_sample_mask(struct si_context *sctx, struct r600_atom *atom) +static void si_emit_sample_mask(struct si_context *sctx, struct si_atom *atom) { struct radeon_winsys_cs *cs = sctx->gfx_cs; unsigned mask = sctx->sample_mask.sample_mask; |