mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
broadcom/vc5: Assert that created BOs have offset != 0.
The kernel shouldn't return a bo at NULL, and the HW special-cases NULL address values for things like OQs.
This commit is contained in:
parent
482f2e24b5
commit
f08f477a93
1 changed files with 1 additions and 0 deletions
|
|
@ -366,6 +366,7 @@ vc5_bo_open_handle(struct vc5_screen *screen,
|
|||
return NULL;
|
||||
}
|
||||
bo->offset = get.offset;
|
||||
assert(bo->offset != 0);
|
||||
|
||||
util_hash_table_set(screen->bo_handles, (void *)(uintptr_t)handle, bo);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue