diff options
author | Nicolai Hähnle <[email protected]> | 2017-05-10 18:45:40 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-05-16 16:11:54 +0200 |
commit | 3811730a3756fbe9d7dd2dc5974a9ef6094b86be (patch) | |
tree | 162a08b4828bfbabc5e02ad423dcd301583ca1f3 /src | |
parent | 4ea67c1751a8f3ae4bae205896ff38a08596bd83 (diff) |
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_debug.c b/src/gallium/drivers/radeonsi/si_debug.c index d08a8fcf0ec..d1159ad5e27 100644 --- a/src/gallium/drivers/radeonsi/si_debug.c +++ b/src/gallium/drivers/radeonsi/si_debug.c @@ -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); } |