diff options
author | Marek Olšák <[email protected]> | 2017-09-13 02:26:26 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-09-26 04:21:14 +0200 |
commit | 06bfb2d28f7adca7edc6be9c210a7a3583023652 (patch) | |
tree | a969d20fe1d2a75eb03facabe4c5fb83948178f0 /src/gallium/drivers/radeon/r600_streamout.c | |
parent | e1623da8185ee5d167cd331fb645e6a83961285a (diff) |
r600: fork and import gallium/radeon
This marks the end of code sharing between r600 and radeonsi.
It's getting difficult to work on radeonsi without breaking r600.
A lot of functions had to be renamed to prevent linker conflicts.
There are also minor cleanups.
Acked-by: Dave Airlie <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_streamout.c')
-rw-r--r-- | src/gallium/drivers/radeon/r600_streamout.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gallium/drivers/radeon/r600_streamout.c b/src/gallium/drivers/radeon/r600_streamout.c index a18089a3b39..40243e6671a 100644 --- a/src/gallium/drivers/radeon/r600_streamout.c +++ b/src/gallium/drivers/radeon/r600_streamout.c @@ -74,7 +74,7 @@ static void r600_so_target_destroy(struct pipe_context *ctx, FREE(t); } -void r600_streamout_buffers_dirty(struct r600_common_context *rctx) +void si_streamout_buffers_dirty(struct r600_common_context *rctx) { struct r600_atom *begin = &rctx->streamout.begin_atom; unsigned num_bufs = util_bitcount(rctx->streamout.enabled_mask); @@ -109,10 +109,10 @@ void r600_streamout_buffers_dirty(struct r600_common_context *rctx) r600_set_streamout_enable(rctx, true); } -void r600_set_streamout_targets(struct pipe_context *ctx, - unsigned num_targets, - struct pipe_stream_output_target **targets, - const unsigned *offsets) +void si_common_set_streamout_targets(struct pipe_context *ctx, + unsigned num_targets, + struct pipe_stream_output_target **targets, + const unsigned *offsets) { struct r600_common_context *rctx = (struct r600_common_context *)ctx; unsigned i; @@ -120,7 +120,7 @@ void r600_set_streamout_targets(struct pipe_context *ctx, /* Stop streamout. */ if (rctx->streamout.num_targets && rctx->streamout.begin_emitted) { - r600_emit_streamout_end(rctx); + si_emit_streamout_end(rctx); } /* Set the new targets. */ @@ -144,7 +144,7 @@ void r600_set_streamout_targets(struct pipe_context *ctx, rctx->streamout.append_bitmask = append_bitmask; if (num_targets) { - r600_streamout_buffers_dirty(rctx); + si_streamout_buffers_dirty(rctx); } else { rctx->set_atom_dirty(rctx, &rctx->streamout.begin_atom, false); r600_set_streamout_enable(rctx, false); @@ -266,7 +266,7 @@ static void r600_emit_streamout_begin(struct r600_common_context *rctx, struct r rctx->streamout.begin_emitted = true; } -void r600_emit_streamout_end(struct r600_common_context *rctx) +void si_emit_streamout_end(struct r600_common_context *rctx) { struct radeon_winsys_cs *cs = rctx->gfx.cs; struct r600_so_target **t = rctx->streamout.targets; @@ -353,8 +353,8 @@ static void r600_set_streamout_enable(struct r600_common_context *rctx, bool ena } } -void r600_update_prims_generated_query_state(struct r600_common_context *rctx, - unsigned type, int diff) +void si_update_prims_generated_query_state(struct r600_common_context *rctx, + unsigned type, int diff) { if (type == PIPE_QUERY_PRIMITIVES_GENERATED) { bool old_strmout_en = r600_get_strmout_en(rctx); @@ -371,7 +371,7 @@ void r600_update_prims_generated_query_state(struct r600_common_context *rctx, } } -void r600_streamout_init(struct r600_common_context *rctx) +void si_streamout_init(struct r600_common_context *rctx) { rctx->b.create_stream_output_target = r600_create_so_target; rctx->b.stream_output_target_destroy = r600_so_target_destroy; |