microsoft/compiler: Fix setting bit 31 in feature flags
authorJesse Natalie <jenatali@microsoft.com>
Mon, 13 Mar 2023 18:22:27 +0000 (11:22 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 23 Mar 2023 21:48:43 +0000 (21:48 +0000)
Fixes: a84208ee ("microsoft/compiler: Fill out and sort the shader/module flags")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21913>

src/microsoft/compiler/nir_to_dxil.c

index 178a1e8..ce2f3fa 100644 (file)
@@ -1729,7 +1729,7 @@ get_module_flags(struct ntd_context *ctx)
    if (ctx->mod.feats.resource_descriptor_heap_indexing)
       flags |= (1 << 30);
    if (ctx->mod.feats.sampler_descriptor_heap_indexing)
-      flags |= (1 << 31);
+      flags |= (1ull << 31);
    if (ctx->mod.feats.atomic_int64_heap_resource)
       flags |= (1ull << 32);
    if (ctx->mod.feats.advanced_texture_ops)