llvmpipe: Silence "possibly uninitialized value" warning for ssbo_limit (cont)

Fixes: ce611935df ("llvmpipe: Silence "possibly uninitialized value" warning for ssbo_limit.")

Signed-off-by: David Heidelberg <david@ixit.cz>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30482>
(cherry picked from commit 9c8e75e256)
This commit is contained in:
David Heidelberg 2024-08-08 08:35:51 +09:00 committed by Eric Engestrom
parent 23383aa41d
commit 5c903880f9
2 changed files with 2 additions and 2 deletions

View file

@ -1734,7 +1734,7 @@
"description": "llvmpipe: Silence \"possibly uninitialized value\" warning for ssbo_limit (cont)",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "ce611935df5e7e6cc731523c7496c33ba6f7ef20",
"notes": null

View file

@ -3848,7 +3848,7 @@ atomic_emit(
LLVMValueRef atom_res = lp_build_alloca(gallivm,
uint_bld->vec_type, "");
LLVMValueRef ssbo_limit;
LLVMValueRef ssbo_limit = NULL;
if (!is_shared) {
ssbo_limit = LLVMBuildAShr(gallivm->builder, bld->ssbo_sizes[buf], lp_build_const_int32(gallivm, 2), "");
ssbo_limit = lp_build_broadcast_scalar(uint_bld, ssbo_limit);