mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
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 <robert.foss@collabora.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
30aa22dec0
commit
0b63f47030
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue