gallium/swr: Fix various asserts and security issues
authorJan Zielinski <jan.zielinski@intel.com>
Wed, 5 Feb 2020 12:57:55 +0000 (13:57 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 5 Feb 2020 16:08:44 +0000 (16:08 +0000)
commit23c137612bea1e319ecdfb894c020b6651f4909a
tree0a93a78e36dd118667bfcb7d550b4807684d6a77
parent7eaf21cb6f67adbe0e79b80b4feb8c816a98a720
gallium/swr: Fix various asserts and security issues

To improve the robustness of the code, we want to better
detect issues in testing (using asserts) and use more
secure techniques.

Reviewed-by: Krzysztof Raszkowski <krzysztof.raszkowski@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3710>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3710>
14 files changed:
src/gallium/auxiliary/gallivm/lp_bld_init.c
src/gallium/drivers/swr/rasterizer/common/rdtsc_buckets.cpp
src/gallium/drivers/swr/rasterizer/common/swr_assert.h
src/gallium/drivers/swr/rasterizer/core/api.cpp
src/gallium/drivers/swr/rasterizer/core/arena.h
src/gallium/drivers/swr/rasterizer/core/tessellator.h
src/gallium/drivers/swr/rasterizer/core/threads.cpp
src/gallium/drivers/swr/rasterizer/jitter/builder_mem.cpp
src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp
src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp
src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp
src/gallium/drivers/swr/swr_query.cpp
src/gallium/drivers/swr/swr_shader.cpp
src/gallium/drivers/swr/swr_state.cpp