OSDN Git Service

radv: only enable shaderInt16 on GFX9+ and LLVM7+
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Sep 2018 20:17:03 +0000 (22:17 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 21 Sep 2018 08:56:17 +0000 (10:56 +0200)
commit674fcfaecca760b6d1befcf78c39dad184ad452d
tree66669cadb0d83ecf2b37f79ad63665c3a2cb6496
parent945e9cdb2b03fdc37de68e223ab0614022d161d5
radv: only enable shaderInt16 on GFX9+ and LLVM7+

The throughput is similar to 32-bit integers on GFX8 and
AMDVLK does not expose 16-bit integers on pre Vega as well.
On GFX9+, only LLVM 7+ has support.

This fixes a bunch of CTS crashes on GFX9/LLVM 6.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c