From d517de6126a1a79adaf5717f2b58ac0a15a87230 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 21 Sep 2015 16:59:21 -0700 Subject: [PATCH] anv: Make anv_state.offset an int32_t Binding tables will have a negative offset and we need a way to express that. Besides, the chances of a state offset being larger than 2 GB is so remote it's not worth thinking about. --- src/vulkan/anv_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index 99135424956..8839e875656 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -310,7 +310,7 @@ anv_block_pool_size(struct anv_block_pool *pool) } struct anv_state { - uint32_t offset; + int32_t offset; uint32_t alloc_size; void *map; }; -- 2.30.2