From: Mathias Fröhlich <mathias.froehl...@gmx.net>

Hi Jose,

This makes llvmpipe thread safe as mandated by the OpenGL standard.
The changes replace the use of two global data structures with
non global ones.
The changes pass piglit as of today without regressions.
The patchset now sticks to your initial suggestion and the review notes to
the first patch version.

Please review!
Mathias

Mathias Fröhlich (2):
  llvmpipe: Use two LLVMContexts per OpenGL context instead of a global
    one.
  llvmpipe: Make a llvmpipe OpenGL context thread safe.

 src/gallium/auxiliary/draw/draw_llvm.c        | 15 +++++++++--
 src/gallium/auxiliary/draw/draw_llvm.h        |  2 ++
 src/gallium/auxiliary/gallivm/lp_bld_init.c   | 35 ++++++++++--------------
 src/gallium/auxiliary/gallivm/lp_bld_init.h   |  3 ++-
 src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 38 +++++++++++++--------------
 src/gallium/auxiliary/gallivm/lp_bld_misc.h   |  3 +++
 src/gallium/drivers/llvmpipe/lp_context.c     |  7 +++++
 src/gallium/drivers/llvmpipe/lp_context.h     |  3 +++
 src/gallium/drivers/llvmpipe/lp_state_fs.c    |  2 +-
 src/gallium/drivers/llvmpipe/lp_state_setup.c |  2 +-
 src/gallium/drivers/llvmpipe/lp_test_arit.c   |  2 +-
 src/gallium/drivers/llvmpipe/lp_test_blend.c  |  2 +-
 src/gallium/drivers/llvmpipe/lp_test_conv.c   |  2 +-
 src/gallium/drivers/llvmpipe/lp_test_format.c |  2 +-
 src/gallium/drivers/llvmpipe/lp_test_printf.c |  2 +-
 15 files changed, 70 insertions(+), 50 deletions(-)

-- 
1.9.3

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to