summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobert Foss <[email protected]>2017-01-30 16:26:58 -0500
committerBas Nieuwenhuizen <[email protected]>2017-01-30 23:59:22 +0100
commit0b63f47030e63ad061b7716cb6ab963cdae0f14f (patch)
tree67a68a44cd5e3833fc017efe16d3706cbe59511c /src
parent30aa22dec0db401abd919b051bdfed54aa9258d1 (diff)
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 <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/amd/vulkan/radv_cmd_buffer.c2
1 files changed, 2 insertions, 0 deletions
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);