From: Eric Anholt Date: Thu, 12 Jul 2018 18:45:27 +0000 (-0700) Subject: intel: tools: Fix uninitialized variable warnings in intel_dump_gpu. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=360714bfa56c0d7539cb3a8372beffdf7bdbaf10;p=mesa.git intel: tools: Fix uninitialized variable warnings in intel_dump_gpu. Reviewed-by: Rafael Antognolli --- diff --git a/src/intel/tools/intel_dump_gpu.c b/src/intel/tools/intel_dump_gpu.c index 1201fa35ae0..766ba662d91 100644 --- a/src/intel/tools/intel_dump_gpu.c +++ b/src/intel/tools/intel_dump_gpu.c @@ -728,6 +728,8 @@ aub_dump_execlist(uint64_t batch_offset, int ring_flag) status_reg = EXECLIST_STATUS_BCSUNIT; control_reg = EXECLIST_CONTROL_BCSUNIT; break; + default: + unreachable("unknown ring"); } mem_trace_memory_write_header_out(ring_addr, 16,