diff options
author | Marek Olšák <[email protected]> | 2012-09-10 05:56:46 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-09-13 20:18:44 +0200 |
commit | c383a3cfb22a36f38a0d57300a701c253311c052 (patch) | |
tree | 2b943f43d29f6009e88e472d00668f09173e5041 /src/gallium/drivers/r600/r600_pipe.c | |
parent | 263045afbc731fe669b43013a32c6dfa457e46ad (diff) |
r600g: initialize the first CS just like any other CS
by reusing the CS initialization in r600_context_flush.
Reviewed-by: Jerome Glisse <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 048b8013192..658e9a94a26 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -286,7 +286,6 @@ static struct pipe_context *r600_create_context(struct pipe_screen *screen, void rctx->cs = rctx->ws->cs_create(rctx->ws); rctx->ws->cs_set_flush_callback(rctx->cs, r600_flush_from_winsys, rctx); - r600_emit_atom(rctx, &rctx->start_cs_cmd.atom); rctx->uploader = u_upload_create(&rctx->context, 1024 * 1024, 256, PIPE_BIND_INDEX_BUFFER | @@ -299,6 +298,7 @@ static struct pipe_context *r600_create_context(struct pipe_screen *screen, void goto fail; rctx->blitter->draw_rectangle = r600_draw_rectangle; + r600_begin_new_cs(rctx); r600_get_backend_mask(rctx); /* this emits commands and must be last */ if (rctx->chip_class == R600) |