libagx: add agx_2d grid helper

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35662>
This commit is contained in:
Alyssa Rosenzweig 2025-01-30 11:27:24 -05:00 committed by Marge Bot
parent 349e802e78
commit 319a6259d9

View file

@ -79,6 +79,12 @@ agx_1d(uint32_t x)
return agx_3d(x, 1, 1);
}
static struct agx_grid
agx_2d(uint32_t x, uint32_t y)
{
return agx_3d(x, y, 1);
}
static struct agx_grid
agx_grid_indirect(uint64_t ptr)
{