swr: Use ElemenCount constructor for LLVM 11
authorjzielins <jan.zielinski@intel.com>
Mon, 7 Sep 2020 14:49:35 +0000 (16:49 +0200)
committerjzielins <jan.zielinski@intel.com>
Tue, 8 Sep 2020 15:31:13 +0000 (17:31 +0200)
commit28df8ffde7cf9a53e1ce6cf13e6b495fb4865295
tree0fd5b5530319d8d5637ddf69f4837720315594ea
parent6049dc1a9d5cb1a3dae063e52409028213d5492a
swr: Use ElemenCount constructor for LLVM 11

In LLVM 12 ElementCount constructor is private
and instead of using it explicitly, ::get function
should be used, but in LLVM 11, the constructor
is still the way to go.

Reviewed-by: Krzysztof Raszkowski <krzysztof.raszkowski@intel.com>
Closes: #3490
Fixes: 639605e5ba947bb947313a6584ef7fbb8619e9c2
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6648>
src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp
src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp