diff options
author | Marek Olšák <[email protected]> | 2018-04-08 21:03:51 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-04-27 17:56:04 -0400 |
commit | ccebcba893cb54f36fec41f548071b08b9f7ba16 (patch) | |
tree | df0b7f3c0c6ada88e025b7be601c1516806302d4 /src/gallium/drivers/radeonsi/si_state.c | |
parent | 639b673fc3b8754dc85fd686dab6ac26738dc3d9 (diff) |
radeonsi: remove si_atom::id
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 | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 13c8fa30d6c..90416b32b71 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -33,19 +33,11 @@ #include "util/u_resource.h" #include "util/u_upload_mgr.h" -/* Initialize an external atom (owned by ../radeon). */ -static void -si_init_external_atom(struct si_context *sctx, struct si_atom *atom) -{ - atom->id = atom - sctx->atoms.array; -} - /* Initialize an atom owned by radeonsi. */ void si_init_atom(struct si_context *sctx, struct si_atom *atom, void (*emit_func)(struct si_context *ctx, struct si_atom *state)) { atom->emit = emit_func; - atom->id = atom - sctx->atoms.array; } static unsigned si_map_swizzle(unsigned swizzle) @@ -4526,12 +4518,6 @@ static void si_init_config(struct si_context *sctx); void si_init_state_functions(struct si_context *sctx) { - si_init_external_atom(sctx, &sctx->atoms.s.render_cond); - si_init_external_atom(sctx, &sctx->atoms.s.streamout_begin); - si_init_external_atom(sctx, &sctx->atoms.s.streamout_enable); - si_init_external_atom(sctx, &sctx->atoms.s.scissors); - si_init_external_atom(sctx, &sctx->atoms.s.viewports); - si_init_atom(sctx, &sctx->atoms.s.framebuffer, si_emit_framebuffer_state); si_init_atom(sctx, &sctx->atoms.s.msaa_sample_locs, si_emit_msaa_sample_locs); si_init_atom(sctx, &sctx->atoms.s.db_render_state, si_emit_db_render_state); |