mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 01:16:18 +00:00
decode: Fix segmentation fault
The decode for A8 is incomplete and died with a segfault. First hide the segfault, latter fix the pretty printing. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
f5e63b12a5
commit
aadfcdfd4e
@ -1203,6 +1203,7 @@ decode_3d_1d(uint32_t *data, int count,
|
|||||||
else if (dword & (1 << 1))
|
else if (dword & (1 << 1))
|
||||||
tiling = dword & (1 << 0) ? "Y" : "X";
|
tiling = dword & (1 << 0) ? "Y" : "X";
|
||||||
type = " BAD";
|
type = " BAD";
|
||||||
|
format = "BAD";
|
||||||
switch ((dword>>7) & 0x7) {
|
switch ((dword>>7) & 0x7) {
|
||||||
case 1:
|
case 1:
|
||||||
type = "8b";
|
type = "8b";
|
||||||
@ -1266,8 +1267,6 @@ decode_3d_1d(uint32_t *data, int count,
|
|||||||
switch ((dword>>3) & 0xf) {
|
switch ((dword>>3) & 0xf) {
|
||||||
case 7: format = " argb8888"; break; }
|
case 7: format = " argb8888"; break; }
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
format = "BAD";
|
|
||||||
}
|
}
|
||||||
dword = data[i];
|
dword = data[i];
|
||||||
instr_out(data, hw_offset, i++, "map %d MS3 [width=%d, height=%d, format=%s%s, tiling=%s%s]\n",
|
instr_out(data, hw_offset, i++, "map %d MS3 [width=%d, height=%d, format=%s%s, tiling=%s%s]\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user