[Mesa-dev] [PATCH] radv: enable Int64 capability (v2)

Dave Airlie airlied at gmail.com
Wed Feb 15 05:02:34 UTC 2017


From: Dave Airlie <airlied at redhat.com>

I'm not 100% sure this is all wired up but it looks like it is.

v2: actually enable extension.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/amd/vulkan/radv_device.c   | 2 +-
 src/amd/vulkan/radv_pipeline.c | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 1132eeb..41ea3ab 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -468,7 +468,7 @@ void radv_GetPhysicalDeviceFeatures(
 		.shaderClipDistance                       = true,
 		.shaderCullDistance                       = true,
 		.shaderFloat64                            = true,
-		.shaderInt64                              = false,
+		.shaderInt64                              = true,
 		.shaderInt16                              = false,
 		.alphaToOne                               = true,
 		.variableMultisampleRate                  = false,
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index cbd846a..2e72902 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -208,7 +208,8 @@ radv_shader_compile_to_nir(struct radv_device *device,
 		}
 		const struct nir_spirv_supported_extensions supported_ext = {
 			.draw_parameters = true,
-			.float64 = true
+			.float64 = true,
+			.int64 = true,
 		};
 		entry_point = spirv_to_nir(spirv, module->size / 4,
 					   spec_entries, num_spec_entries,
-- 
2.7.4



More information about the mesa-dev mailing list