[Mesa-dev] [PATCH 0/2] Make a llvmpipe context basically thread safe v2.

Mathias.Froehlich at gmx.net Mathias.Froehlich at gmx.net
Sun Aug 31 01:06:22 PDT 2014


From: Mathias Fröhlich <Mathias.Froehlich at 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



More information about the mesa-dev mailing list