mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 12:00:12 +01:00
panfrost: Add pan_bo_for_screen helper
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
330cd057ad
commit
ba02cf0e75
1 changed files with 10 additions and 0 deletions
|
|
@ -96,6 +96,16 @@ pan_screen(struct pipe_screen *p)
|
|||
return (struct panfrost_screen *)p;
|
||||
}
|
||||
|
||||
/* Get a transient BO off the screen given a
|
||||
* particular index */
|
||||
|
||||
static inline struct panfrost_bo *
|
||||
pan_bo_for_index(struct panfrost_screen *screen, unsigned index)
|
||||
{
|
||||
return *(util_dynarray_element(&screen->transient_bo,
|
||||
struct panfrost_bo *, index));
|
||||
}
|
||||
|
||||
void
|
||||
panfrost_drm_allocate_slab(struct panfrost_screen *screen,
|
||||
struct panfrost_memory *mem,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue