From b3135c3cf36226e391227be4c546a6a0abae6d9d Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 23 Feb 2017 16:18:00 -0800 Subject: [PATCH] anv: Advertise shaderInt64 on Broadwell and above MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Samuel Iglesias Gonsálvez --- src/intel/vulkan/anv_device.c | 2 +- src/intel/vulkan/anv_pipeline.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index a5b91fd..fbcbd40 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -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, diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 91a3bec..64e409b 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -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, -- 2.7.4