[Mesa-dev] [PATCH 39/59] anv/device: expose support for shaderFloat16 in gen8+
Iago Toral Quiroga
itoral at igalia.com
Tue Dec 4 07:17:03 UTC 2018
---
src/intel/vulkan/anv_device.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 6b5ba25c6bc..caf25ad8a03 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -966,6 +966,15 @@ void anv_GetPhysicalDeviceFeatures2(
break;
}
+ case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT16_INT8_FEATURES_KHR: {
+ VkPhysicalDeviceFloat16Int8FeaturesKHR *features = (void *)ext;
+ ANV_FROM_HANDLE(anv_physical_device, pdevice, physicalDevice);
+
+ features->shaderFloat16 = pdevice->info.gen >= 8;
+ features->shaderInt8 = false;
+ break;
+ }
+
default:
anv_debug_ignored_stype(ext->sType);
break;
--
2.17.1
More information about the mesa-dev
mailing list