From: Jason Ekstrand Date: Mon, 21 Sep 2015 23:59:21 +0000 (-0700) Subject: anv: Make anv_state.offset an int32_t X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d517de6126a1a79adaf5717f2b58ac0a15a87230;p=mesa.git 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. --- 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; };