summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-08-26 19:31:05 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-08-30 15:08:23 -0700
commita0f5c496e348b918a556dd275289d4dda63b94c9 (patch)
tree1f4ded7342d65d66a5ee83b94946b9c651455633 /src/intel/vulkan/anv_pipeline.c
parent4200c2266e9c1f76e54d667e69a1a69516e6bf57 (diff)
downloadexternal_mesa3d-a0f5c496e348b918a556dd275289d4dda63b94c9.zip
external_mesa3d-a0f5c496e348b918a556dd275289d4dda63b94c9.tar.gz
external_mesa3d-a0f5c496e348b918a556dd275289d4dda63b94c9.tar.bz2
anv/allocator: Correctly set the number of buckets
The range from ANV_MIN_STATE_SIZE_LOG2 to ANV_MAX_STATE_SIZE_LOG2 should be inclusive and we have asserts that ensure that you never try to allocate a state larger than (1 << ANV_MAX_STATE_SIZE_LOG2). However, without adding 1 to the difference, we allocate 1 too few bucckts and so, even though we have an assert, anything landing in the last bucket will fail to allocate properly.. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Diffstat (limited to 'src/intel/vulkan/anv_pipeline.c')
0 files changed, 0 insertions, 0 deletions