[Mesa-dev] [PATCH v3 21/22] anv: enable float64 feature on supported platforms

Jason Ekstrand jason at jlekstrand.net
Thu Jan 5 20:44:32 UTC 2017


You're doing more here than enabling float64...

On Thu, Jan 5, 2017 at 2:18 AM, Samuel Iglesias Gonsálvez <
siglesias at igalia.com> wrote:

> Signed-off-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
> ---
>  src/intel/vulkan/anv_pipeline.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_
> pipeline.c
> index 361fd256cf7..e25465fc1d9 100644
> --- a/src/intel/vulkan/anv_pipeline.c
> +++ b/src/intel/vulkan/anv_pipeline.c
> @@ -124,10 +124,15 @@ anv_shader_compile_to_nir(struct anv_device *device,
>        }
>     }
>
> +   const struct nir_spirv_supported_extensions supported_ext = {
> +      .float64 = device->instance->physicalDevice.info.gen >= 8,
> +      .image_ms_array = true,
> +   };
> +
>     nir_function *entry_point =
>        spirv_to_nir(spirv, module->size / 4,
>                     spec_entries, num_spec_entries,
> -                   stage, entrypoint_name, NULL, nir_options);
> +                   stage, entrypoint_name, &supported_ext, nir_options);
>     nir_shader *nir = entry_point->shader;
>     assert(nir->stage == stage);
>     nir_validate_shader(nir);
> --
> 2.11.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170105/4cd9605b/attachment.html>


More information about the mesa-dev mailing list