Fix -Wunreachable-code-break
Bug: None Change-Id: I2bb05b6c4f9c2ec58ffdaa9eff14fd9bf71fccf7 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/18661 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
parent
e8316538e3
commit
9322cc3908
|
@ -48,7 +48,6 @@ namespace dawn_native {
|
|||
|
||||
case wgpu::BindingType::StorageTexture: {
|
||||
return DAWN_VALIDATION_ERROR("Read-write storage texture binding is not supported");
|
||||
break;
|
||||
}
|
||||
|
||||
case wgpu::BindingType::UniformBuffer:
|
||||
|
|
|
@ -161,7 +161,6 @@ namespace dawn_native {
|
|||
commands->NextCommand<EndRenderPassCmd>();
|
||||
DAWN_TRY(ValidateFinalDebugGroupStackSize(debugGroupStackSize));
|
||||
return {};
|
||||
break;
|
||||
}
|
||||
|
||||
case Command::ExecuteBundles: {
|
||||
|
@ -225,7 +224,6 @@ namespace dawn_native {
|
|||
commands->NextCommand<EndComputePassCmd>();
|
||||
DAWN_TRY(ValidateFinalDebugGroupStackSize(debugGroupStackSize));
|
||||
return {};
|
||||
break;
|
||||
}
|
||||
|
||||
case Command::Dispatch: {
|
||||
|
|
|
@ -758,7 +758,6 @@ namespace dawn_native { namespace d3d12 {
|
|||
case Command::EndComputePass: {
|
||||
mCommands.NextCommand<EndComputePassCmd>();
|
||||
return {};
|
||||
break;
|
||||
}
|
||||
|
||||
case Command::SetComputePipeline: {
|
||||
|
@ -1160,7 +1159,6 @@ namespace dawn_native { namespace d3d12 {
|
|||
ResolveMultisampledRenderPass(commandContext, renderPass);
|
||||
}
|
||||
return {};
|
||||
break;
|
||||
}
|
||||
|
||||
case Command::SetStencilReference: {
|
||||
|
|
|
@ -98,11 +98,10 @@ namespace dawn_native { namespace d3d12 {
|
|||
if ((flags & D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL) ||
|
||||
(flags & D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET)) {
|
||||
return Default_OnlyRenderableOrDepthTextures;
|
||||
} else {
|
||||
return Default_OnlyNonRenderableOrDepthTextures;
|
||||
}
|
||||
break;
|
||||
return Default_OnlyNonRenderableOrDepthTextures;
|
||||
}
|
||||
|
||||
default:
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
|
|
@ -845,7 +845,6 @@ namespace dawn_native { namespace metal {
|
|||
mCommands.NextCommand<EndComputePassCmd>();
|
||||
commandContext->EndCompute();
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
case Command::Dispatch: {
|
||||
|
@ -1218,7 +1217,6 @@ namespace dawn_native { namespace metal {
|
|||
mCommands.NextCommand<EndRenderPassCmd>();
|
||||
commandContext->EndRender();
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
case Command::SetStencilReference: {
|
||||
|
|
|
@ -654,7 +654,6 @@ namespace dawn_native { namespace opengl {
|
|||
case Command::EndComputePass: {
|
||||
mCommands.NextCommand<EndComputePassCmd>();
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
case Command::Dispatch: {
|
||||
|
@ -1013,7 +1012,6 @@ namespace dawn_native { namespace opengl {
|
|||
}
|
||||
gl.DeleteFramebuffers(1, &fbo);
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
case Command::SetStencilReference: {
|
||||
|
|
|
@ -572,7 +572,6 @@ namespace dawn_native { namespace vulkan {
|
|||
case Command::EndComputePass: {
|
||||
mCommands.NextCommand<EndComputePassCmd>();
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
case Command::Dispatch: {
|
||||
|
@ -876,7 +875,6 @@ namespace dawn_native { namespace vulkan {
|
|||
mCommands.NextCommand<EndRenderPassCmd>();
|
||||
device->fn.CmdEndRenderPass(commands);
|
||||
return {};
|
||||
break;
|
||||
}
|
||||
|
||||
case Command::SetBlendColor: {
|
||||
|
|
Loading…
Reference in New Issue