mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-22 07:16:14 +00:00
gem_stress: dump complete failed tile
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
ad515f817a
commit
874163d5c8
@ -179,6 +179,7 @@ static void cpucpy2d(uint32_t *src, unsigned src_stride, unsigned src_x, unsigne
|
|||||||
unsigned logical_tile_no)
|
unsigned logical_tile_no)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
|
int failed = 0;
|
||||||
|
|
||||||
for (i = 0; i < TILE_SIZE; i++) {
|
for (i = 0; i < TILE_SIZE; i++) {
|
||||||
for (j = 0; j < TILE_SIZE; j++) {
|
for (j = 0; j < TILE_SIZE; j++) {
|
||||||
@ -189,12 +190,14 @@ static void cpucpy2d(uint32_t *src, unsigned src_stride, unsigned src_x, unsigne
|
|||||||
uint32_t tmp = src[src_ofs];
|
uint32_t tmp = src[src_ofs];
|
||||||
if (tmp != expect) {
|
if (tmp != expect) {
|
||||||
printf("mismatch at tile %i pos %i, read %u, expected %u\n",
|
printf("mismatch at tile %i pos %i, read %u, expected %u\n",
|
||||||
logical_tile_no, j*TILE_SIZE, tmp, expect);
|
logical_tile_no, i*TILE_SIZE + j, tmp, expect);
|
||||||
exit(1);
|
failed = 1;
|
||||||
}
|
}
|
||||||
dst[dst_ofs] = tmp;
|
dst[dst_ofs] = tmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (failed)
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void next_copyfunc(void);
|
static void next_copyfunc(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user