aco/isel: fix output args init stack buffer overflow

BITSET range functions include the end of the range.

Fixes: eb249bb18e ("aco: Only fix used variables to registers")
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37361>
(cherry picked from commit d029686e20)
This commit is contained in:
Georg Lehmann 2025-09-15 18:53:45 +02:00 committed by Eric Engestrom
parent 04d7a945dc
commit 0d94a27bb3
2 changed files with 2 additions and 2 deletions

View file

@ -3434,7 +3434,7 @@
"description": "aco/isel: fix output args init stack buffer overflow",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "eb249bb18e250dca198332def96a1ad921cfd77b",
"notes": null

View file

@ -696,7 +696,7 @@ init_context(isel_context* ctx, nir_shader* shader)
(uint8_t*)shader->constant_data,
(uint8_t*)shader->constant_data + shader->constant_data_size);
BITSET_CLEAR_RANGE(ctx->output_args, 0, BITSET_SIZE(ctx->output_args));
BITSET_ZERO(ctx->output_args);
}
void