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:
@@ -3483,7 +3483,7 @@ load_emit(
|
|||||||
|
|
||||||
scalar_ptr = is_shared ? bld->shared_ptr : bld->ssbos[buf];
|
scalar_ptr = is_shared ? bld->shared_ptr : bld->ssbos[buf];
|
||||||
|
|
||||||
LLVMValueRef ssbo_limit;
|
LLVMValueRef ssbo_limit = NULL;
|
||||||
|
|
||||||
if (!is_shared) {
|
if (!is_shared) {
|
||||||
ssbo_limit = LLVMBuildAShr(gallivm->builder, bld->ssbo_sizes[buf], lp_build_const_int32(gallivm, 2), "");
|
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];
|
scalar_ptr = is_shared ? bld->shared_ptr : bld->ssbos[buf];
|
||||||
|
|
||||||
LLVMValueRef ssbo_limit;
|
LLVMValueRef ssbo_limit = NULL;
|
||||||
|
|
||||||
if (!is_shared) {
|
if (!is_shared) {
|
||||||
ssbo_limit = LLVMBuildAShr(gallivm->builder, bld->ssbo_sizes[buf], lp_build_const_int32(gallivm, 2), "");
|
ssbo_limit = LLVMBuildAShr(gallivm->builder, bld->ssbo_sizes[buf], lp_build_const_int32(gallivm, 2), "");
|
||||||
|
|||||||
Reference in New Issue
Block a user