diff options
author | Eric Anholt <[email protected]> | 2018-02-10 11:11:14 +0000 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-03-16 15:09:47 -0700 |
commit | 9f89452ea36327b1a7faefd401784599288c1be0 (patch) | |
tree | abfb5080cff4df785b1604518a03fd2ba5115afe /src/intel | |
parent | f3833f1ca79960a944760914b8a208c4e6bc12e7 (diff) |
anv: Silence compiler warnings about uninitialized bind_offset.
This is a legitimate warning: if anv's blorp_alloc_binding_table() throws
an error from anv_cmd_buffer_alloc_blorp_binding_table(), we silently
continue to use this undefined value. The rest of this code doesn't seem
very allocation-error-proof, though, either.
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/blorp/blorp_genX_exec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h index b612709035a..992bc9959a1 100644 --- a/src/intel/blorp/blorp_genX_exec.h +++ b/src/intel/blorp/blorp_genX_exec.h @@ -1388,7 +1388,7 @@ blorp_emit_surface_states(struct blorp_batch *batch, const struct blorp_params *params) { const struct isl_device *isl_dev = batch->blorp->isl_dev; - uint32_t bind_offset, surface_offsets[2]; + uint32_t bind_offset = 0, surface_offsets[2]; void *surface_maps[2]; MAYBE_UNUSED bool has_indirect_clear_color = false; |