summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimur Kristóf <[email protected]>2020-01-21 13:49:00 +0100
committerTimur Kristóf <[email protected]>2020-01-22 11:09:14 +0100
commit533a20dbd56b8af24ba2df4d2a973d46f8efabbd (patch)
treecc6e823a9c467528f58a9800e0109a24991b47f2 /src
parent6fb3df2786f09f4c7383cb0a15d394316d240c42 (diff)
aco: Fix maybe-uninitialized warnings.
Signed-off-by: Timur Kristóf <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3483>
Diffstat (limited to 'src')
-rw-r--r--src/amd/compiler/aco_assembler.cpp2
-rw-r--r--src/amd/compiler/aco_instruction_selection.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/compiler/aco_assembler.cpp b/src/amd/compiler/aco_assembler.cpp
index 241e3d44309..c7088a498b5 100644
--- a/src/amd/compiler/aco_assembler.cpp
+++ b/src/amd/compiler/aco_assembler.cpp
@@ -512,6 +512,8 @@ void emit_instruction(asm_context& ctx, std::vector<uint32_t>& out, Instruction*
encoding = (0b110100 << 26);
} else if (ctx.chip_class == GFX10) {
encoding = (0b110101 << 26);
+ } else {
+ unreachable("Unknown chip_class.");
}
if (ctx.chip_class <= GFX7) {
diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp
index ee6f02f4bec..873f9b01380 100644
--- a/src/amd/compiler/aco_instruction_selection.cpp
+++ b/src/amd/compiler/aco_instruction_selection.cpp
@@ -7937,6 +7937,8 @@ static void emit_stream_output(isel_context *ctx,
case 4:
opcode = aco_opcode::buffer_store_dwordx4;
break;
+ default:
+ unreachable("Unsupported dword count.");
}
aco_ptr<MUBUF_instruction> store{create_instruction<MUBUF_instruction>(opcode, Format::MUBUF, 4, 0)};