radv: only enable VK_AMD_gpu_shader_{half_float,int16} on GFX9+
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 27 Jun 2019 17:29:13 +0000 (19:29 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 28 Jun 2019 06:40:44 +0000 (08:40 +0200)
commitef1787dbc95e138b782fef1fcc93279ccf0e4910
treed5755cc0fe2f5cff1a469d61bbc9d483364c5c4b
parent5d6d29ed5dc8150476af834c0fbadd1325c9ad7b
radv: only enable VK_AMD_gpu_shader_{half_float,int16} on GFX9+

These two extensions are supported on GFX8 but the throughput
of 16-bit floats/integers is same as 32-bit. Also, shaderInt16
is only enabled on GFX9+ for the same reason, be more consistent.

This fixes a crash with Wolfenstein II because it expects
shaderInt16 to be enabled when VK_AMD_gpu_shader_half_float is
exposed. Note that AMDVLK only enables these extensions on GFX9+.

Cc: 19.1 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_extensions.py