mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-04 21:20:37 +02:00
agx: add temp_like helper
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28483>
This commit is contained in:
parent
ffd2b846c4
commit
6bff596505
1 changed files with 7 additions and 0 deletions
|
|
@ -513,6 +513,13 @@ agx_temp(agx_context *ctx, enum agx_size size)
|
|||
return agx_get_index(ctx->alloc++, size);
|
||||
}
|
||||
|
||||
static inline agx_index
|
||||
agx_temp_like(agx_context *ctx, agx_index idx)
|
||||
{
|
||||
idx.value = ctx->alloc++;
|
||||
return idx;
|
||||
}
|
||||
|
||||
static enum agx_size
|
||||
agx_size_for_bits(unsigned bits)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue