From: Robert Foss Date: Mon, 30 Jan 2017 21:26:58 +0000 (-0500) Subject: radv: Prevent Coverity warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b63f47030e63ad061b7716cb6ab963cdae0f14f;p=mesa.git radv: Prevent Coverity warning Prevent Coverity seeing potential errors when src is no initialized in the switch case. Coverity-Id: 1396397 Signed-off-by: Robert Foss Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 8c0bf8f3722..afa84528874 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -415,6 +415,8 @@ radv_update_multisample_state(struct radv_cmd_buffer *cmd_buffer, case 16: src = cmd_buffer->device->sample_locations_16x; break; + default: + unreachable("unknown number of samples"); } memcpy(samples_ptr, src, num_samples * 4 * 2);