Module: Mesa Branch: main Commit: 8fc42d83bed381f9c3f0c87be6a2dc957c28f6cf URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8fc42d83bed381f9c3f0c87be6a2dc957c28f6cf
Author: Lionel Landwerlin <lionel.g.landwer...@intel.com> Date: Wed Oct 18 16:12:16 2023 +0300 anv: make sure pools can handle more than 2Gb Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Reviewed-by: Tapani Pälli <tapani.pa...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25955> --- src/intel/vulkan/anv_private.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index c35d2b61af9..99c695baf8b 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -613,10 +613,10 @@ anv_block_pool_size(struct anv_block_pool *pool) } struct anv_state { - int32_t offset; + int64_t offset; uint32_t alloc_size; - void *map; uint32_t idx; + void *map; }; #define ANV_STATE_NULL ((struct anv_state) { .alloc_size = 0 }) @@ -652,7 +652,7 @@ struct anv_state_pool { /* Offset into the relevant state base address where the state pool starts * allocating memory. */ - int32_t start_offset; + int64_t start_offset; struct anv_state_table table;