mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 15:40:11 +01:00
radv: update VK_KHR_shader_float_controls for Vulkan 1.2
Promoted to Vulkan 1.2 with the KHR suffix omitted. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
5335bb6c39
commit
af25c8d57b
1 changed files with 5 additions and 5 deletions
|
|
@ -1645,16 +1645,16 @@ void radv_GetPhysicalDeviceProperties2(
|
|||
properties->uniformTexelBufferOffsetSingleTexelAlignment = true;
|
||||
break;
|
||||
}
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT_CONTROLS_PROPERTIES_KHR : {
|
||||
VkPhysicalDeviceFloatControlsPropertiesKHR *properties =
|
||||
(VkPhysicalDeviceFloatControlsPropertiesKHR *)ext;
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT_CONTROLS_PROPERTIES : {
|
||||
VkPhysicalDeviceFloatControlsProperties *properties =
|
||||
(VkPhysicalDeviceFloatControlsProperties *)ext;
|
||||
|
||||
/* On AMD hardware, denormals and rounding modes for
|
||||
* fp16/fp64 are controlled by the same config
|
||||
* register.
|
||||
*/
|
||||
properties->denormBehaviorIndependence = VK_SHADER_FLOAT_CONTROLS_INDEPENDENCE_32_BIT_ONLY_KHR;
|
||||
properties->roundingModeIndependence = VK_SHADER_FLOAT_CONTROLS_INDEPENDENCE_32_BIT_ONLY_KHR;
|
||||
properties->denormBehaviorIndependence = VK_SHADER_FLOAT_CONTROLS_INDEPENDENCE_32_BIT_ONLY;
|
||||
properties->roundingModeIndependence = VK_SHADER_FLOAT_CONTROLS_INDEPENDENCE_32_BIT_ONLY;
|
||||
|
||||
/* Do not allow both preserving and flushing denorms
|
||||
* because different shaders in the same pipeline can
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue