mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
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 commitd029686e20)
This commit is contained in:
parent
04d7a945dc
commit
0d94a27bb3
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue