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
|
@ -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…
Reference in New Issue