mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-29 17:10:46 +02:00
aco: Initialize spill_ctx members in constructor.
Fix defects reported by Coverity Scan.
Uninitialized scalar field (UNINIT_CTOR)
uninit_member: Non-static class member sgpr_spill_slots is not
initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member vgpr_spill_slots is not
initialized in this constructor nor in any functions that it calls.
Fixes: 7d34044908 ("aco: refactor VGPR spill/reload lowering")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17583>
This commit is contained in:
parent
687a5d8690
commit
7384aab3ee
1 changed files with 2 additions and 1 deletions
|
|
@ -91,7 +91,8 @@ struct spill_ctx {
|
|||
: target_pressure(target_pressure_), program(program_),
|
||||
register_demand(std::move(register_demand_)), renames(program->blocks.size()),
|
||||
spills_entry(program->blocks.size()), spills_exit(program->blocks.size()),
|
||||
processed(program->blocks.size(), false), wave_size(program->wave_size)
|
||||
processed(program->blocks.size(), false), wave_size(program->wave_size),
|
||||
sgpr_spill_slots(0), vgpr_spill_slots(0)
|
||||
{}
|
||||
|
||||
void add_affinity(uint32_t first, uint32_t second)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue