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 a5b91fd..fbcbd40 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 91a3bec..64e409b 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,