mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 06:00:10 +01:00
i965: Shut up Coverity warning about HiZ buffers.
Here the AUX_USAGE_* mode indicates that we have HiZ, so we will have a HiZ buffer. But Coverity doesn't know that, so it thinks it might be NULL because we checked hiz_buf != NULL earlier. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
698636cc97
commit
445367242a
1 changed files with 1 additions and 0 deletions
|
|
@ -184,6 +184,7 @@ blorp_surf_for_miptree(struct brw_context *brw,
|
|||
surf->aux_addr.buffer = mt->mcs_buf->bo;
|
||||
surf->aux_addr.offset = mt->mcs_buf->offset;
|
||||
} else {
|
||||
assert(mt->hiz_buf);
|
||||
assert(surf->aux_usage == ISL_AUX_USAGE_HIZ);
|
||||
|
||||
surf->aux_addr.buffer = mt->hiz_buf->bo;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue