radv: Enable Float64 support.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 29 Jan 2017 22:07:10 +0000 (23:07 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 1 Feb 2017 00:09:34 +0000 (01:09 +0100)
Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_pipeline.c

index da67b65ef43260d2ff70e9e7149f6a9c108b008f..0026de5a0e09a8bef090b1afb09b2aa8c3f6e99b 100644 (file)
@@ -463,7 +463,7 @@ void radv_GetPhysicalDeviceFeatures(
                .shaderStorageImageWriteWithoutFormat     = false,
                .shaderClipDistance                       = true,
                .shaderCullDistance                       = true,
-               .shaderFloat64                            = false,
+               .shaderFloat64                            = true,
                .shaderInt64                              = false,
                .shaderInt16                              = false,
                .alphaToOne                               = true,
index 279a0767efdcdefb29382b8754fef294dcea5aa2..bf3007ba2de2b470874467a587e00c8b73d6862a 100644 (file)
@@ -207,6 +207,7 @@ radv_shader_compile_to_nir(struct radv_device *device,
                        }
                }
                const struct nir_spirv_supported_extensions supported_ext = {
+                       .float64 = true
                };
                entry_point = spirv_to_nir(spirv, module->size / 4,
                                           spec_entries, num_spec_entries,