mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
radeonsi: silence a Coverity warning
Coverity doesn't understand that we'll never pass non-NULL for vertex shaders. This is a bit lame, actually. A straightforward cross-procedural analysis limited to this source file should be enough to prove that there's no NULL-pointer dereference. Oh well. CID: 1405999 Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
4ea67c1751
commit
3811730a37
1 changed files with 2 additions and 0 deletions
|
|
@ -478,6 +478,8 @@ static void si_dump_descriptors(struct si_context *sctx,
|
|||
};
|
||||
|
||||
if (processor == PIPE_SHADER_VERTEX) {
|
||||
assert(info); /* only CS may not have an info struct */
|
||||
|
||||
si_dump_descriptor_list(&sctx->vertex_buffers, shader_name[processor],
|
||||
" - Vertex buffer", info->num_inputs, f);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue