gallium/swr: fix corruptions in Unigine Heaven
authorJan Zielinski <jan.zielinski@intel.com>
Thu, 27 Feb 2020 16:22:05 +0000 (17:22 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 3 Mar 2020 17:50:25 +0000 (17:50 +0000)
commit18675363a35e98e6afa39c77b983ca6f383bfc00
tree658dfe34c08c9069375806aa9340c19c4c35953f
parent0ab5c88a0ac0dacac085c17bef23c9c67eaf9e86
gallium/swr: fix corruptions in Unigine Heaven

Few changes to fix the last corruptions in Heaven:
- fix indirect TCS input when vertex/attribute
  index is not the same for each patch
- use the correct functions to build loops in shader
- fix using vmask for writting TCS output

Reviewed-by: Krzysztof Raszkowski <krzysztof.raszkowski@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3980>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3980>
src/gallium/auxiliary/gallivm/lp_bld_ir_common.h
src/gallium/auxiliary/gallivm/lp_bld_logic.h
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
src/gallium/drivers/swr/swr_shader.cpp