mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 02:20:11 +01:00
ac/debug: Decrease num_dw for type 2 NOP's.
Otherwise we read past the end of the buffer. Signed-off-by: Bas Nieuwenhuizen <basni@google.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
57f18623fb
commit
3b4bf8aa63
1 changed files with 1 additions and 0 deletions
|
|
@ -357,6 +357,7 @@ void ac_parse_ib(FILE *f, uint32_t *ib, int num_dw, int trace_id,
|
|||
if (ib[0] == 0x80000000) {
|
||||
fprintf(f, COLOR_GREEN "NOP (type 2)" COLOR_RESET "\n");
|
||||
ib++;
|
||||
num_dw--;
|
||||
break;
|
||||
}
|
||||
/* fall through */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue