anv: Don't advertise Float64 or Int64 on HW without 64-bit types
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 30 Apr 2018 22:15:37 +0000 (15:15 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 1 May 2018 21:45:50 +0000 (14:45 -0700)
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/intel/vulkan/anv_device.c

index 1c5dbb5189c7c2c571e4dabf966cfa6ab001c61b..11ab5e0c1dda3aaccce5dd1dc0855bab908dde78 100644 (file)
@@ -755,8 +755,10 @@ void anv_GetPhysicalDeviceFeatures(
       .shaderStorageImageArrayDynamicIndexing   = true,
       .shaderClipDistance                       = true,
       .shaderCullDistance                       = true,
-      .shaderFloat64                            = pdevice->info.gen >= 8,
-      .shaderInt64                              = pdevice->info.gen >= 8,
+      .shaderFloat64                            = pdevice->info.gen >= 8 &&
+                                                  pdevice->info.has_64bit_types,
+      .shaderInt64                              = pdevice->info.gen >= 8 &&
+                                                  pdevice->info.has_64bit_types,
       .shaderInt16                              = false,
       .shaderResourceMinLod                     = false,
       .variableMultisampleRate                  = false,