From: Samuel Pitoiset Date: Thu, 24 Oct 2019 13:16:07 +0000 (+0200) Subject: radv: fix VK_KHR_shader_float_controls dependency on GFX6-7 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2bf8a9b33790614041df26a1a9327449cf3bb3f3;p=mesa.git radv: fix VK_KHR_shader_float_controls dependency on GFX6-7 From the Vulkan spec 1.1.126 : "VK_SHADER_FLOAT_CONTROLS_INDEPENDENCE_32_BIT_ONLY_KHR specifies that shader float controls for 32-bit floating point can be set independently; other bit widths must be set identically to each other." Forgot to update this when I enabled that extension recently. Fixes dEQP-VK.spirv_assembly.instruction.compute.float_controls.independence_settings.independence_setting Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index aa466844ec4..b7dddd27a3a 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -1520,10 +1520,10 @@ void radv_GetPhysicalDeviceProperties2( properties->shaderSignedZeroInfNanPreserveFloat16 = pdevice->rad_info.chip_class >= GFX8; properties->shaderDenormFlushToZeroFloat64 = false; - properties->shaderDenormPreserveFloat64 = true; - properties->shaderRoundingModeRTEFloat64 = true; + properties->shaderDenormPreserveFloat64 = pdevice->rad_info.chip_class >= GFX8; + properties->shaderRoundingModeRTEFloat64 = pdevice->rad_info.chip_class >= GFX8; properties->shaderRoundingModeRTZFloat64 = false; - properties->shaderSignedZeroInfNanPreserveFloat64 = true; + properties->shaderSignedZeroInfNanPreserveFloat64 = pdevice->rad_info.chip_class >= GFX8; break; } default: