[Mesa-dev] [PATCH] ac/debug: Decrease num_dw for type 2 NOP's.
Nicolai Hähnle
nhaehnle at gmail.com
Tue Jan 17 10:06:20 UTC 2017
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
On 16.01.2017 21:17, Bas Nieuwenhuizen wrote:
> Otherwise we read past the end of the buffer.
>
> Signed-off-by: Bas Nieuwenhuizen <basni at google.com>
> ---
> src/amd/common/ac_debug.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/amd/common/ac_debug.c b/src/amd/common/ac_debug.c
> index f91e448a47f..989dfda4ff9 100644
> --- a/src/amd/common/ac_debug.c
> +++ b/src/amd/common/ac_debug.c
> @@ -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 */
>
More information about the mesa-dev
mailing list