mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-24 09:30:29 +01:00
llvmpipe: Silence "possibly uninitialized value" warning for ssbo_limit.
The condition for the use matches the def, but you can't trust a compiler to notice. Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3867>
This commit is contained in:
parent
45b2ccc6b3
commit
ce611935df
1 changed files with 2 additions and 2 deletions
|
|
@ -3483,7 +3483,7 @@ load_emit(
|
|||
|
||||
scalar_ptr = is_shared ? bld->shared_ptr : bld->ssbos[buf];
|
||||
|
||||
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), "");
|
||||
|
|
@ -3602,7 +3602,7 @@ store_emit(
|
|||
|
||||
scalar_ptr = is_shared ? bld->shared_ptr : bld->ssbos[buf];
|
||||
|
||||
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), "");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue