diff options
author | Rob Clark <[email protected]> | 2016-06-02 11:47:11 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-06-02 15:44:07 -0400 |
commit | 80c288603300a06ac1585769cc491711c3d1b4f0 (patch) | |
tree | f9d8ac64dd44d63b726bbb50544ff62ac86a4b7f /src/gallium/drivers/freedreno | |
parent | 9b854ce53cb0550311d2252523fe088c281074d8 (diff) |
freedreno/a4xx: silence coverity warning
CID 1362451
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r-- | src/gallium/drivers/freedreno/a4xx/fd4_program.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_program.c b/src/gallium/drivers/freedreno/a4xx/fd4_program.c index 9dc4ebbf086..4590c0e7df9 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_program.c +++ b/src/gallium/drivers/freedreno/a4xx/fd4_program.c @@ -121,6 +121,12 @@ emit_shader(struct fd_ringbuffer *ring, const struct ir3_shader_variant *so) OUT_RELOC(ring, so->bo, 0, CP_LOAD_STATE_1_STATE_TYPE(ST_SHADER), 0); } + + /* for how clever coverity is, it is sometimes rather dull, and + * doesn't realize that the only case where bin==NULL, sz==0: + */ + assume(bin || (sz == 0)); + for (i = 0; i < sz; i++) { OUT_RING(ring, bin[i]); } |