anv: make sure pools can handle more than 2Gb

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25955>
This commit is contained in:
Lionel Landwerlin
2023-10-18 16:12:16 +03:00
committed by Marge Bot
parent cc67bd48d9
commit 8fc42d83be
+3 -3
View File
@@ -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;