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

Connor Abbott connora at valvesoftware.com
Sat Jul 1 02:56:09 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 | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 427d357..f2fe823 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -568,7 +568,7 @@ void radv_GetPhysicalDeviceFeatures(
 		.shaderClipDistance                       = true,
 		.shaderCullDistance                       = true,
 		.shaderFloat64                            = true,
-		.shaderInt64                              = false,
+		.shaderInt64                              = true,
 		.shaderInt16                              = false,
 		.sparseBinding                            = true,
 		.variableMultisampleRate                  = true,
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index d05acd2..49610a1 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -229,6 +229,7 @@ radv_shader_compile_to_nir(struct radv_device *device,
 			.image_read_without_format = true,
 			.image_write_without_format = true,
 			.tessellation = true,
+			.int64 = true,
 		};
 		entry_point = spirv_to_nir(spirv, module->size / 4,
 					   spec_entries, num_spec_entries,
-- 
2.9.4



More information about the mesa-dev mailing list