diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-04-24 13:20:39 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-04-24 13:20:39 +0100 |
commit | 39be50dcdebe6bcbb48cb6aa8ac151eee811acb1 (patch) | |
tree | 8eea7003235544c246bd3bbaf7e7f96025457ecd /src/gallium/drivers/llvmpipe/lp_setup.c | |
parent | e7a8cfc8776c70f8c4cc3e158f663f6c630169ed (diff) |
llvmpipe: Move the determination of the number of threads to the screen.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c index 210c7b8a90..0dad4c259e 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_setup.c @@ -765,8 +765,9 @@ struct lp_setup_context * lp_setup_create( struct pipe_context *pipe, struct draw_context *draw ) { - unsigned i; + struct llvmpipe_screen *screen = llvmpipe_screen(pipe->screen); struct lp_setup_context *setup = CALLOC_STRUCT(lp_setup_context); + unsigned i; if (!setup) return NULL; @@ -779,7 +780,8 @@ lp_setup_create( struct pipe_context *pipe, /* XXX: move this to the screen and share between contexts: */ - setup->rast = lp_rast_create(); + setup->num_threads = screen->num_threads; + setup->rast = lp_rast_create(screen->num_threads); if (!setup->rast) goto fail; |