mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
anv: initialize anv_address to ensure that the protection field is set
It is unconditionally used, but is uninitialized.
CID: 1675079
Fixes: b1e74a1bb1 ("anv: shrink image opaque data")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39245>
This commit is contained in:
parent
bc1ccebb0e
commit
1055004693
1 changed files with 1 additions and 1 deletions
|
|
@ -1722,7 +1722,7 @@ anv_image_init_sparse_bindings(struct anv_image *image,
|
|||
b->memory_range.offset + b->memory_range.size);
|
||||
}
|
||||
|
||||
struct anv_address base_address;
|
||||
struct anv_address base_address = ANV_NULL_ADDRESS;
|
||||
VkResult result = anv_init_sparse_bindings(
|
||||
device, total_size, &image->sparse_data, alloc_flags,
|
||||
explicit_addresses != NULL ? explicit_addresses->main_binding : 0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue