spirv2dxil: Support int64 and doubles
authorJesse Natalie <jenatali@microsoft.com>
Wed, 10 May 2023 23:02:46 +0000 (16:02 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 11 May 2023 21:56:31 +0000 (21:56 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22952>

src/microsoft/spirv_to_dxil/dxil_spirv_nir.c

index ddf83af..1d453fa 100644 (file)
@@ -55,6 +55,8 @@ spirv_to_nir_options = {
       .descriptor_array_non_uniform_indexing = true,
       .image_read_without_format = true,
       .image_write_without_format = true,
+      .int64 = true,
+      .float64 = true,
    },
    .ubo_addr_format = nir_address_format_32bit_index_offset,
    .ssbo_addr_format = nir_address_format_32bit_index_offset,
@@ -1127,6 +1129,8 @@ dxil_spirv_nir_passes(nir_shader *nir,
       } while (progress);
    }
 
+   NIR_PASS_V(nir, nir_lower_doubles, NULL, nir->options->lower_doubles_options);
+
    if (conf->declared_read_only_images_as_srvs)
       NIR_PASS_V(nir, nir_lower_readonly_images_to_tex, true);
    nir_lower_tex_options lower_tex_options = {