llvmpipe: Fix MSVC warning C4334 (32bit shift cast to 64bit)

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-By: Bill Kristiansen <billkris@microsoft.com>
Cc: mesa-stable@lists.freedesktop.org
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10331>
(cherry picked from commit b678115480)
This commit is contained in:
Jesse Natalie 2021-04-19 12:21:27 -07:00 committed by Dylan Baker
parent 478b898521
commit b1e42faa1c
2 changed files with 2 additions and 2 deletions

View file

@ -382,7 +382,7 @@
"description": "llvmpipe: Fix MSVC warning C4334 (32bit shift cast to 64bit)",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": null
},

View file

@ -719,7 +719,7 @@ generate_fs_loop(struct gallivm_state *gallivm,
else
mask_val = LLVMBuildOr(builder, s_mask, mask_val, "");
LLVMValueRef mask_in = LLVMBuildAnd(builder, s_mask, lp_build_const_int_vec(gallivm, type, (1 << s)), "");
LLVMValueRef mask_in = LLVMBuildAnd(builder, s_mask, lp_build_const_int_vec(gallivm, type, (1ll << s)), "");
sample_mask_in = LLVMBuildOr(builder, sample_mask_in, mask_in, "");
}
} else {