gallium/swr: Fix glVertexPointer race condition.
authorKrzysztof Raszkowski <krzysztof.raszkowski@intel.com>
Wed, 8 Jan 2020 15:42:03 +0000 (15:42 +0000)
committerJan Zielinski <jan.zielinski@intel.com>
Wed, 8 Jan 2020 15:42:03 +0000 (15:42 +0000)
commit7d33203b446cdfa11c2aaea18caf05b120a16283
tree31c1e782a9d806d2e84ed18538efc33142d1cab3
parentb788cccfe2ff2b6897b73bbfe7e90e84899adec0
gallium/swr: Fix glVertexPointer race condition.

Sometimes using user buffer (not VBO) e.g. glVertexPointer
one thread could free memory before other thread used it.
Instead of copying this memory to driver simplier thing is
to block until draw finish.

Reviewed-by: Jan Zielinski <jan.zielinski@intel.com>
src/gallium/drivers/swr/swr_context.h
src/gallium/drivers/swr/swr_draw.cpp
src/gallium/drivers/swr/swr_state.cpp