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:
Eric Anholt 2018-04-12 15:20:17 -07:00
parent 482f2e24b5
commit f08f477a93
1 changed files with 1 additions and 0 deletions

View File

@ -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);