diff options
author | Jason Ekstrand <[email protected]> | 2015-09-15 15:00:43 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-09-17 17:44:20 -0700 |
commit | c55fa89251a1188b312aa09ba260cba7a411a282 (patch) | |
tree | a786d37dee215175a007797ac8721637e630d4d4 /src/vulkan/anv_private.h | |
parent | 8c6bc1e85d4b2eebf90a5ac862d650c9973bb126 (diff) |
anv/allocator: Use a signed 32-bit offset for the free list
This has the unfortunate side-effect of making it so that we can't have a
block pool bigger than 1GB. However, that's unlikely to happen and, for
the sake of bi-directional block pools, we need to negative offsets.
Diffstat (limited to 'src/vulkan/anv_private.h')
-rw-r--r-- | src/vulkan/anv_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index 5931e0af98d..ef7c7083bb0 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -229,7 +229,7 @@ struct anv_bo { */ union anv_free_list { struct { - uint32_t offset; + int32_t offset; /* A simple count that is incremented every time the head changes. */ uint32_t count; |