gallium/swr: Fix crashes and failures in vertex fetch
authorJan Zielinski <jan.zielinski@intel.com>
Tue, 28 Apr 2020 19:05:46 +0000 (21:05 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Apr 2020 23:53:08 +0000 (23:53 +0000)
commita93b728bc61e263b9188a66df501bf108c9b3050
tree5ec7daa180b121ffa345d85fd74dc230cfafb37a
parentde0d3d172675cdc0edaa164169eb9ca2a36a2e7d
gallium/swr: Fix crashes and failures in vertex fetch

This commit fixes two problems:
- In some cases SWR does not correctly report to Gallium
  which formats are supported.
- Incorrect LLVM instructions are used in vertex fetch in some situations

Reviewed-by: Krzysztof Raszkowski <krzysztof.raszkowski@intel.com>
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4788>
src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp
src/gallium/drivers/swr/swr_screen.cpp