diff options
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_context.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_context.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_context.c b/src/gallium/drivers/llvmpipe/lp_context.c index 84912c6f114..9a1a7b9ad5f 100644 --- a/src/gallium/drivers/llvmpipe/lp_context.c +++ b/src/gallium/drivers/llvmpipe/lp_context.c @@ -37,6 +37,7 @@ #include "util/u_math.h" #include "util/u_memory.h" #include "util/simple_list.h" +#include "util/u_upload_mgr.h" #include "lp_clear.h" #include "lp_context.h" #include "lp_flush.h" @@ -62,6 +63,9 @@ static void llvmpipe_destroy( struct pipe_context *pipe ) util_blitter_destroy(llvmpipe->blitter); } + if (llvmpipe->pipe.stream_uploader) + u_upload_destroy(llvmpipe->pipe.stream_uploader); + /* This will also destroy llvmpipe->setup: */ if (llvmpipe->draw) @@ -195,6 +199,11 @@ llvmpipe_create_context(struct pipe_screen *screen, void *priv, if (!llvmpipe->setup) goto fail; + llvmpipe->pipe.stream_uploader = u_upload_create_default(&llvmpipe->pipe); + if (!llvmpipe->pipe.stream_uploader) + goto fail; + llvmpipe->pipe.const_uploader = llvmpipe->pipe.stream_uploader; + llvmpipe->blitter = util_blitter_create(&llvmpipe->pipe); if (!llvmpipe->blitter) { goto fail; |