summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_allocator.c
Commit message (Collapse)AuthorAgeFilesLines
* anv: Add an allocator for scratch buffersJason Ekstrand2016-06-221-0/+76
| | | | | Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Cc: "12.0" <mesa-stable@lists.freedesktop.org>
* anv: remove define _DEFAULT_SOURCEEmil Velikov2016-05-231-2/+0
| | | | | | | The build systems already add this as applicable. There's no need to have this in the source file. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* anv/allocator: Make the bo_pool dynamically sizedJason Ekstrand2016-03-181-20/+28
|
* anv/allocator: Add a size field to bo_pool_allocJason Ekstrand2016-03-181-1/+3
|
* anv/allocator: Better casting in PFL macrosJason Ekstrand2016-03-071-2/+2
| | | | | | | We cast he constant 0xfff values to a uintptr_t before applying a bitwise negate to ensure that they are actually 64-bit when needed. Also, the count variable doesn't need to be explicitly cast, it will get upcast as needed by the "|" operation.
* anv/allocator: Move the alignment assert for the pointer free listJason Ekstrand2016-03-071-1/+6
| | | | | | | | | Previously we asserted every time you tried to pack a pointer and a counter together. However, this wasn't really correct. In the case where you try to grab the last element of the list, the "next elemnet" value you get may be bogus if someonoe else got there first. This was leading to assertion failures even though the allocator would safely fall through to the failure case below.
* anv/bo_pool: Allow freeing BOs where the anv_bo is in the BO itselfJason Ekstrand2016-03-071-4/+6
|
* anv/allocator: Set is_winsys_bo to false for block pool BOsJason Ekstrand2016-02-181-0/+1
|
* Move the intel vulkan driver to src/intel/vulkanJason Ekstrand2016-02-181-0/+862