From dde3b04d444b02f460a6220e45db553d968adc8c Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Fri, 28 Jan 2022 12:54:17 -0800 Subject: [PATCH] microsoft/compiler: It's possible to have doubles without int64 Reviewed-by: Bill Kristiansen Reviewed-By: Sil Vilerino Part-of: --- src/microsoft/compiler/nir_to_dxil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/microsoft/compiler/nir_to_dxil.c b/src/microsoft/compiler/nir_to_dxil.c index fb4fda2ffb2..ca69d29e89d 100644 --- a/src/microsoft/compiler/nir_to_dxil.c +++ b/src/microsoft/compiler/nir_to_dxil.c @@ -1669,7 +1669,8 @@ store_dest(struct ntd_context *ctx, nir_dest *dest, unsigned chan, case nir_type_float: if (nir_dest_bit_size(*dest) == 64) ctx->mod.feats.doubles = true; - FALLTHROUGH; + store_dest_value(ctx, dest, chan, value); + break; case nir_type_uint: case nir_type_int: if (nir_dest_bit_size(*dest) == 16) @@ -1726,8 +1727,7 @@ get_src(struct ntd_context *ctx, nir_src *src, unsigned chan, case nir_type_float: assert(nir_src_bit_size(*src) >= 16); - assert(nir_src_bit_size(*src) != 64 || (ctx->mod.feats.doubles && - ctx->mod.feats.int64_ops)); + assert(nir_src_bit_size(*src) != 64 || ctx->mod.feats.doubles); if (dxil_value_type_equal_to(value, dxil_module_get_float_type(&ctx->mod, bit_size))) return value; assert(dxil_value_type_bitsize_equal_to(value, bit_size));