brw: shut -Wmaybe-uninitialized up
Release builds are noisy about flush_type and scope being used uninitialized, even though they are always set. Initialize them to the final else values to make GCC happy. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38357>
This commit is contained in:
@@ -5077,8 +5077,8 @@ lsc_fence_descriptor_for_intrinsic(const struct intel_device_info *devinfo,
|
||||
{
|
||||
assert(devinfo->has_lsc);
|
||||
|
||||
enum lsc_fence_scope scope;
|
||||
enum lsc_flush_type flush_type;
|
||||
enum lsc_fence_scope scope = LSC_FENCE_TILE;
|
||||
enum lsc_flush_type flush_type = LSC_FLUSH_TYPE_EVICT;
|
||||
|
||||
if (instr->intrinsic == nir_intrinsic_begin_invocation_interlock ||
|
||||
instr->intrinsic == nir_intrinsic_end_invocation_interlock) {
|
||||
@@ -5110,10 +5110,6 @@ lsc_fence_descriptor_for_intrinsic(const struct intel_device_info *devinfo,
|
||||
flush_type = LSC_FLUSH_TYPE_NONE;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
/* No scope defined. */
|
||||
scope = LSC_FENCE_TILE;
|
||||
flush_type = LSC_FLUSH_TYPE_EVICT;
|
||||
}
|
||||
}
|
||||
return lsc_fence_msg_desc(devinfo, scope, flush_type, true);
|
||||
|
||||
Reference in New Issue
Block a user