venus: document vkr_cs_decoder_temp_pool

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
macos/master
Chia-I Wu 3 years ago
parent 7c97b7b26c
commit 2c0497b95d
  1. 8
      src/venus/vkr_cs.h

@ -40,6 +40,14 @@ struct vkr_cs_decoder_saved_state {
uint8_t *pool_reset_to; uint8_t *pool_reset_to;
}; };
/*
* We usually need many small allocations during decoding. Those allocations
* are suballocated from the temp pool.
*
* After a command is decoded, vkr_cs_decoder_reset_temp_pool is called to
* reset pool->cur. After an entire command stream is decoded,
* vkr_cs_decoder_gc_temp_pool is called to garbage collect pool->buffers.
*/
struct vkr_cs_decoder_temp_pool { struct vkr_cs_decoder_temp_pool {
uint8_t **buffers; uint8_t **buffers;
uint32_t buffer_count; uint32_t buffer_count;

Loading…
Cancel
Save