From 8fc42d83bed381f9c3f0c87be6a2dc957c28f6cf Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 18 Oct 2023 16:12:16 +0300 Subject: [PATCH] anv: make sure pools can handle more than 2Gb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lionel Landwerlin Reviewed-by: Tapani Pälli Part-of: --- 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;