summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-04-12 15:20:17 -0700
committerEric Anholt <[email protected]>2018-04-24 10:37:29 -0700
commitf08f477a93e783361d2942133da18504c2851469 (patch)
tree5608b0ae47302cf88661458ad810a3e0fd1fe94f /src/gallium
parent482f2e24b59086bcc1515663167744c707d1c82c (diff)
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.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/vc5/vc5_bufmgr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc5/vc5_bufmgr.c b/src/gallium/drivers/vc5/vc5_bufmgr.c
index 1b91fbbdae7..ef6995e4def 100644
--- a/src/gallium/drivers/vc5/vc5_bufmgr.c
+++ b/src/gallium/drivers/vc5/vc5_bufmgr.c
@@ -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);