summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2017-02-15 04:58:48 +0000
committerConnor Abbott <cwabbott0@gmail.com>2017-07-03 11:58:59 -0700
commit1bc40ae9524477de9d4f73b57b3ae69a40923695 (patch)
tree27f0912ee5160a69ea01a1cf0b3fa99152c13173
parent2ec77f7a3c95802cd54b015f613b044c0d135f72 (diff)
radv: enable Int64 capability (v2)
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@redhat.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-rw-r--r--src/amd/vulkan/radv_device.c2
-rw-r--r--src/amd/vulkan/radv_pipeline.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 427d35769d..f2fe8230bd 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 d05acd2850..49610a1a22 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,