diff options
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_draw_arrays.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_draw_arrays.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_draw_arrays.c b/src/gallium/drivers/llvmpipe/lp_draw_arrays.c index 87e8623c4f0..6a89b74e3a3 100644 --- a/src/gallium/drivers/llvmpipe/lp_draw_arrays.c +++ b/src/gallium/drivers/llvmpipe/lp_draw_arrays.c @@ -61,6 +61,8 @@ llvmpipe_map_constant_buffers(struct llvmpipe_context *lp) else size = 0; + lp->jit_context.constants = lp->mapped_constants[PIPE_SHADER_FRAGMENT]; + draw_set_mapped_constant_buffer(lp->draw, lp->mapped_constants[PIPE_SHADER_VERTEX], size); @@ -80,6 +82,8 @@ llvmpipe_unmap_constant_buffers(struct llvmpipe_context *lp) draw_set_mapped_constant_buffer(lp->draw, NULL, 0); + lp->jit_context.constants = NULL; + for (i = 0; i < 2; i++) { if (lp->constants[i].buffer && lp->constants[i].buffer->size) ws->buffer_unmap(ws, lp->constants[i].buffer); |