diff options
author | Nicolai Hähnle <[email protected]> | 2016-07-10 16:13:28 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-07-13 09:52:39 +0200 |
commit | 65d48fcf8c0821365e0e81347894326847039328 (patch) | |
tree | 4e86a1eee64d82551a93fce58311628062d33184 /src/gallium/drivers/radeonsi/si_state.c | |
parent | a2bd7334ed4faba5fc1cf3cad7e119f560c2c904 (diff) |
radeonsi: silence Coverity warning
Coverity's analysis is too weak to understand that
r600_init_flushed_depth(_, _, NULL) only returns true when
flushed_depth_texture was assigned a non-NULL value.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index bdd7ef4a0f8..f801ca55829 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -3001,6 +3001,8 @@ si_create_sampler_view_custom(struct pipe_context *ctx, return NULL; } + assert(tmp->flushed_depth_texture); + /* Override format for the case where the flushed texture * contains only Z or only S. */ |