intel: tools: Fix uninitialized variable warnings in intel_dump_gpu.
authorEric Anholt <eric@anholt.net>
Thu, 12 Jul 2018 18:45:27 +0000 (11:45 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 16 Jul 2018 17:58:40 +0000 (10:58 -0700)
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/intel/tools/intel_dump_gpu.c

index 1201fa35ae0c8c10f7161aa39313bb83a1aef457..766ba662d91039a26a3ab4bdff883f4f3768793d 100644 (file)
@@ -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,