mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
nir/spirv: Make a decoration switch complete
Getting rid of the default case makes the compiler warn if we are missing
cases. While we're here, we also add the one missing case.
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 526a8de22d)
This commit is contained in:
parent
bb4ff53a71
commit
5ca18b6a4b
1 changed files with 1 additions and 3 deletions
|
|
@ -533,6 +533,7 @@ struct_member_decoration_cb(struct vtn_builder *b,
|
|||
case SpvDecorationIndex:
|
||||
case SpvDecorationBinding:
|
||||
case SpvDecorationDescriptorSet:
|
||||
case SpvDecorationLinkageAttributes:
|
||||
case SpvDecorationNoContraction:
|
||||
case SpvDecorationInputAttachmentIndex:
|
||||
vtn_warn("Decoration not allowed on struct members: %s",
|
||||
|
|
@ -553,9 +554,6 @@ struct_member_decoration_cb(struct vtn_builder *b,
|
|||
vtn_warn("Decoraiton only allowed for CL-style kernels: %s",
|
||||
spirv_decoration_to_string(dec->decoration));
|
||||
break;
|
||||
|
||||
default:
|
||||
unreachable("Unhandled member decoration");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue