anv: Add comment to anv_state->offset

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37669>
This commit is contained in:
José Roberto de Souza 2025-07-03 13:33:57 -07:00 committed by Marge Bot
parent a90d8fc08e
commit d728c97022

View file

@ -775,6 +775,9 @@ anv_block_pool_size(struct anv_block_pool *pool)
}
struct anv_state {
/* The offset within the VA of the anv_state_pool of this anv_state.
* offset = <actual VMA address> - <anv_state_pool->anv_block_pool.start_address> - <anv_state_pool->start_offset>
*/
int64_t offset;
uint32_t alloc_size;
uint32_t idx;