anv: Advertise shaderInt64 on Broadwell and above
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 24 Feb 2017 00:18:00 +0000 (16:18 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 3 Mar 2017 21:59:29 +0000 (13:59 -0800)
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_pipeline.c

index a5b91fd6d323525c6dc8038f8265c3b7068a4080..fbcbd40c61f0c349259669a348108ddcb100f9e7 100644 (file)
@@ -489,7 +489,7 @@ void anv_GetPhysicalDeviceFeatures(
       .shaderClipDistance                       = true,
       .shaderCullDistance                       = true,
       .shaderFloat64                            = pdevice->info.gen >= 8,
-      .shaderInt64                              = false,
+      .shaderInt64                              = pdevice->info.gen >= 8,
       .shaderInt16                              = false,
       .shaderResourceMinLod                     = false,
       .variableMultisampleRate                  = false,
index 91a3becad503287d498946325b96877fa6949df7..64e409b7d421a4c9b0557531c0fa390aae0679aa 100644 (file)
@@ -126,6 +126,7 @@ anv_shader_compile_to_nir(struct anv_device *device,
 
    const struct nir_spirv_supported_extensions supported_ext = {
       .float64 = device->instance->physicalDevice.info.gen >= 8,
+      .int64 = device->instance->physicalDevice.info.gen >= 8,
       .tessellation = true,
       .draw_parameters = true,
       .image_write_without_format = true,