summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-10-31 20:25:08 -0700
committerJason Ekstrand <[email protected]>2016-11-09 11:31:04 -0800
commitd46bfb629725a5b8c327f3bd7f76d04f5ae262aa (patch)
treefdd9dd49aab580d4de6e2bb0a57a57d2b6691c1b /src/intel
parentbd0f8d50706fce400ff0768c659acc90696aadb6 (diff)
anv: Initialize anv_bo::offset to -1
Since -1 is an invalid GPU address, this lets us know whether or not we have a valid address for a buffer. We don't get a valid address until the first time that buffer is used in an execbuf2 ioctl. Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]> Cc: "13.0" <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/vulkan/anv_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index 7a661d2f6da..f32058a9332 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -275,7 +275,7 @@ anv_bo_init(struct anv_bo *bo, uint32_t gem_handle, uint64_t size)
{
bo->gem_handle = gem_handle;
bo->index = 0;
- bo->offset = 0;
+ bo->offset = -1;
bo->size = size;
bo->map = NULL;
bo->is_winsys_bo = false;