mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 01:46:14 +00:00
Correctly flag the acthd when it points within a packet.
This commit is contained in:
parent
12ceecf971
commit
da2c7f35c7
@ -82,15 +82,16 @@ instr_out(uint32_t *data, uint32_t hw_offset, unsigned int index,
|
|||||||
{
|
{
|
||||||
va_list va;
|
va_list va;
|
||||||
char *parseinfo;
|
char *parseinfo;
|
||||||
|
uint32_t offset = hw_offset + index * 4;
|
||||||
|
|
||||||
if (hw_offset == head_offset)
|
if (offset == head_offset)
|
||||||
parseinfo = "HEAD";
|
parseinfo = "HEAD";
|
||||||
else if (hw_offset == tail_offset)
|
else if (offset == tail_offset)
|
||||||
parseinfo = "TAIL";
|
parseinfo = "TAIL";
|
||||||
else
|
else
|
||||||
parseinfo = " ";
|
parseinfo = " ";
|
||||||
|
|
||||||
fprintf(out, "0x%08x: %s 0x%08x: %s", hw_offset + index * 4, parseinfo,
|
fprintf(out, "0x%08x: %s 0x%08x: %s", offset + index * 4, parseinfo,
|
||||||
data[index],
|
data[index],
|
||||||
index == 0 ? "" : " ");
|
index == 0 ? "" : " ");
|
||||||
va_start(va, fmt);
|
va_start(va, fmt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user