mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
broadcom/vc5: Print the buffer name in simulator overflow checks.
Revealed that I was writing past the TSDA, not the Z buffer as I expected.
This commit is contained in:
parent
368bab43fd
commit
95873a184e
1 changed files with 4 additions and 2 deletions
|
|
@ -257,8 +257,10 @@ vc5_simulator_unpin_bos(int fd, struct vc5_job *job)
|
|||
struct vc5_simulator_bo *sim_bo =
|
||||
vc5_get_simulator_bo(file, bo->handle);
|
||||
|
||||
assert(*(uint32_t *)(sim_bo->vaddr +
|
||||
sim_bo->size) == BO_SENTINEL);
|
||||
if (*(uint32_t *)(sim_bo->vaddr +
|
||||
sim_bo->size) != BO_SENTINEL) {
|
||||
fprintf(stderr, "Buffer overflow in %s\n", bo->name);
|
||||
}
|
||||
|
||||
vc5_bo_map(bo);
|
||||
memcpy(bo->map, sim_bo->vaddr, bo->size);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue