mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
agxdecode: fix stack smash with border colour
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26614>
This commit is contained in:
parent
a8857028bb
commit
5b33c74626
1 changed files with 1 additions and 1 deletions
|
|
@ -421,7 +421,7 @@ agxdecode_usc(const uint8_t *map, UNUSED uint64_t *link, UNUSED bool verbose,
|
|||
agx_unpack(agxdecode_dump_stream, map, USC_SAMPLER, temp);
|
||||
DUMP_UNPACKED(USC_SAMPLER, temp, "Sampler state\n");
|
||||
|
||||
uint8_t buf[AGX_SAMPLER_LENGTH * temp.count];
|
||||
uint8_t buf[(AGX_SAMPLER_LENGTH + AGX_BORDER_LENGTH) * temp.count];
|
||||
uint8_t *samp = buf;
|
||||
|
||||
agxdecode_fetch_gpu_array(temp.buffer, buf);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue