[Mesa-dev] [PATCH] radv: only enable shaderInt16 on GFX9+ and LLVM7+

Samuel Pitoiset samuel.pitoiset at gmail.com
Thu Sep 20 20:17:03 UTC 2018


16-bit integers seem to broken on GFX8 and AMDVLK does
not advertise them too. On GFX9+, only LLVM7+ has support.

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

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/vulkan/radv_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 7e46a57fb57..db9a85883ee 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -761,7 +761,7 @@ void radv_GetPhysicalDeviceFeatures(
 		.shaderCullDistance                       = true,
 		.shaderFloat64                            = true,
 		.shaderInt64                              = true,
-		.shaderInt16                              = true,
+		.shaderInt16                              = pdevice->rad_info.chip_class >= GFX9 && HAVE_LLVM >= 0x700,
 		.sparseBinding                            = true,
 		.variableMultisampleRate                  = true,
 		.inheritedQueries                         = true,
-- 
2.19.0



More information about the mesa-dev mailing list